This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/blotter/script.js

18 lines
546 B
JavaScript
Raw Normal View History

/*jshint bitwise:true, curly:true, forin:false, noarg:true, noempty:true, nonew:true, undef:true, strict:false, browser:true, jquery:true */
2012-03-09 21:10:26 +00:00
$(document).ready(function() {
2012-08-15 10:13:25 +00:00
$(".shm-blotter2-toggle").click(function() {
$(".shm-blotter2").slideToggle("slow", function() {
if($(".shm-blotter2").is(":hidden")) {
$.cookie("ui-blotter2-hidden", 'true', {path: '/'});
2012-03-09 21:10:26 +00:00
}
else {
2012-08-15 10:13:25 +00:00
$.cookie("ui-blotter2-hidden", 'false', {path: '/'});
2012-03-09 21:10:26 +00:00
}
});
});
2014-04-24 03:39:09 +00:00
if($.cookie("ui-blotter2-hidden") === 'true') {
2012-08-15 10:13:25 +00:00
$(".shm-blotter2").hide();
2012-03-09 21:10:26 +00:00
}
});