migrate to a non-deprecated (and dependency-free) cookie library
This commit is contained in:
@ -4,14 +4,14 @@ $(document).ready(function() {
|
||||
$(".shm-blotter2-toggle").click(function() {
|
||||
$(".shm-blotter2").slideToggle("slow", function() {
|
||||
if($(".shm-blotter2").is(":hidden")) {
|
||||
$.cookie("ui-blotter2-hidden", 'true', {path: '/'});
|
||||
Cookies.set("ui-blotter2-hidden", 'true');
|
||||
}
|
||||
else {
|
||||
$.cookie("ui-blotter2-hidden", 'false', {path: '/'});
|
||||
Cookies.set("ui-blotter2-hidden", 'false');
|
||||
}
|
||||
});
|
||||
});
|
||||
if($.cookie("ui-blotter2-hidden") === 'true') {
|
||||
if(Cookies.get("ui-blotter2-hidden") === 'true') {
|
||||
$(".shm-blotter2").hide();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user