convert blotter to use ui-* and shm-*
This commit is contained in:
parent
6717639caa
commit
fd4e801756
@ -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();
|
||||
}
|
||||
});
|
||||
|
@ -161,8 +161,8 @@ class BlotterTheme extends Themelet {
|
||||
$in_text = "<ul>$entries_list</ul>";
|
||||
}
|
||||
$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='blotter2'>$in_text</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' class='shm-blotter2'>$in_text</div>";
|
||||
return $html;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user