migrate to a non-deprecated (and dependency-free) cookie library

This commit is contained in:
Shish
2016-06-18 00:00:02 +01:00
parent dda634b068
commit 7bc9a73357
8 changed files with 165 additions and 57 deletions

View File

@ -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();
}
});