js cookie expires

This commit is contained in:
Shish 2012-03-22 16:28:57 +00:00
parent cfe0547755
commit f993b3c19d
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ $(function() {
function select_blocked_tags() {
var blocked_tags = prompt("Enter tags to ignore", $.cookie("blocked-tags") || "My_Little_Pony");
if(blocked_tags) {
$.cookie("blocked-tags", blocked_tags.toLowerCase(), {path: '/'});
$.cookie("blocked-tags", blocked_tags.toLowerCase(), {path: '/', expires: 365});
location.reload(true);
}
}

View File

@ -63,7 +63,7 @@ $(document).ready(function() {
}
}
}
$.cookie("sidebar-hidden", sidebar_hidden.join("|"), {path: '/'});
$.cookie("sidebar-hidden", sidebar_hidden.join("|"), {path: '/', expires: 365});
})
});