convert blotter to use ui-* and shm-*

This commit is contained in:
Shish
2012-08-15 11:13:25 +01:00
parent 6717639caa
commit fd4e801756
2 changed files with 9 additions and 10 deletions

View File

@@ -1,16 +1,15 @@
$(document).ready(function() {
$("#blotter2-toggle").click(function() {
$("#blotter2").slideToggle("slow", function() {
if($("#blotter2").is(":hidden")) {
$.cookie("blotter2-hidden", 'true', {path: '/'});
$(".shm-blotter2-toggle").click(function() {
$(".shm-blotter2").slideToggle("slow", function() {
if($(".shm-blotter2").is(":hidden")) {
$.cookie("ui-blotter2-hidden", 'true', {path: '/'});
}
else {
$.cookie("blotter2-hidden", 'false', {path: '/'});
$.cookie("ui-blotter2-hidden", 'false', {path: '/'});
}
});
});
if($.cookie("blotter2-hidden") == 'true') {
$("#blotter2").hide();
if($.cookie("ui-blotter2-hidden") == 'true') {
$(".shm-blotter2").hide();
}
});