ui- prefix for UI cookies
This commit is contained in:
parent
31b3113d49
commit
0b45042161
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
$(function() {
|
$(function() {
|
||||||
var blocked_tags = ($.cookie("blocked-tags") || "").split(" ");
|
var blocked_tags = ($.cookie("ui-blocked-tags") || $.cookie("blocked-tags") || "").split(" ");
|
||||||
var needs_refresh = false;
|
var needs_refresh = false;
|
||||||
for(i in blocked_tags) {
|
for(i in blocked_tags) {
|
||||||
var tag = blocked_tags[i];
|
var tag = blocked_tags[i];
|
||||||
|
@ -18,9 +18,9 @@ $(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
function select_blocked_tags() {
|
function select_blocked_tags() {
|
||||||
var blocked_tags = prompt("Enter tags to ignore", $.cookie("blocked-tags") || "My_Little_Pony");
|
var blocked_tags = prompt("Enter tags to ignore", $.cookie("ui-blocked-tags") || "My_Little_Pony");
|
||||||
if(blocked_tags) {
|
if(blocked_tags) {
|
||||||
$.cookie("blocked-tags", blocked_tags.toLowerCase(), {path: '/', expires: 365});
|
$.cookie("ui-blocked-tags", blocked_tags.toLowerCase(), {path: '/', expires: 365});
|
||||||
location.reload(true);
|
location.reload(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var sidebar_hidden = ($.cookie("ui-sidebar-hidden") || "").split("|");
|
var sidebar_hidden = ($.cookie("ui-sidebar-hidden") || $.cookie("sidebar-hidden") || "").split("|");
|
||||||
for(var i in sidebar_hidden) {
|
for(var i in sidebar_hidden) {
|
||||||
if(sidebar_hidden[i].length > 0) {
|
if(sidebar_hidden[i].length > 0) {
|
||||||
$(sidebar_hidden[i]+" .blockbody").hide();
|
$(sidebar_hidden[i]+" .blockbody").hide();
|
||||||
|
|
Reference in a new issue