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() { $(document).ready(function() {
$("#blotter2-toggle").click(function() { $(".shm-blotter2-toggle").click(function() {
$("#blotter2").slideToggle("slow", function() { $(".shm-blotter2").slideToggle("slow", function() {
if($("#blotter2").is(":hidden")) { if($(".shm-blotter2").is(":hidden")) {
$.cookie("blotter2-hidden", 'true', {path: '/'}); $.cookie("ui-blotter2-hidden", 'true', {path: '/'});
} }
else { else {
$.cookie("blotter2-hidden", 'false', {path: '/'}); $.cookie("ui-blotter2-hidden", 'false', {path: '/'});
} }
}); });
}); });
if($.cookie("blotter2-hidden") == 'true') { if($.cookie("ui-blotter2-hidden") == 'true') {
$("#blotter2").hide(); $(".shm-blotter2").hide();
} }
}); });

View File

@ -161,8 +161,8 @@ class BlotterTheme extends Themelet {
$in_text = "<ul>$entries_list</ul>"; $in_text = "<ul>$entries_list</ul>";
} }
$html = ""; $html = "";
$html .= "<div id='blotter1'><span>$out_text</span>{$pos_break}<span style='{$pos_align}'><a href='#' id='blotter2-toggle'>Show/Hide</a> <a href='".make_link("blotter")."'>Show All</a></span></div>"; $html .= "<div id='blotter1' class='shm-blotter1'><span>$out_text</span>{$pos_break}<span style='{$pos_align}'><a href='#' id='blotter2-toggle' class='shm-blotter2-toggle'>Show/Hide</a> <a href='".make_link("blotter")."'>Show All</a></span></div>";
$html .= "<div id='blotter2'>$in_text</div>"; $html .= "<div id='blotter2' class='shm-blotter2'>$in_text</div>";
return $html; return $html;
} }
} }