From c56cecb382127d7242b0a814d0e1dc61b56377d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Wed, 3 Jul 2013 23:57:53 +0200 Subject: [PATCH] Modify the cookies to expires far away. --- util.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/util.js b/util.js index fb4262c..e946c10 100644 --- a/util.js +++ b/util.js @@ -34,14 +34,14 @@ function updateCookieFromCheckbox (id) { if ($(id).is(":checked")) { if ($(id).is(':radio')) { - $.cookie(name, $(id).val ()); + $.cookie(name, $(id).val (), { expires: 365 }); } else { - $.cookie(name, '1'); + $.cookie(name, '1', { expires: 365 }); } } else { - $.cookie(name, '0'); + $.cookie(name, '0', { expires: 365 }); } } @@ -58,7 +58,7 @@ function sendToMailAddress (component, dataid) { var email = $.cookie ('email'); if (!$.cookie ('email')) { email = window.prompt ("Please enter your email : ", ""); - $.cookie ('email', email); + $.cookie ('email', email, { expires: 365 }); } var url = 'sendtomail.php'; if (currentData.databaseId) { @@ -265,7 +265,7 @@ function updatePage (data) { $(".headright").click(function(){ if ($("#tool").is(":hidden")) { $("#tool").slideDown("slow"); - $.cookie('toolbar', '1'); + $.cookie('toolbar', '1', { expires: 365 }); } else { $("#tool").slideUp(); $.removeCookie('toolbar');