get sidebar hiding working again

This commit is contained in:
Shish 2012-03-12 02:53:41 +00:00
parent 7d027494b6
commit 15dba9a5e3

View File

@ -54,7 +54,9 @@ $(document).ready(function() {
var sidebar_hidden = ($.cookie("sidebar-hidden") || "").split("|");
for(var i in sidebar_hidden) {
if(sidebar_hidden[i].length > 0) {
$(sidebar_hidden[i]+" .blockbody").hide();
}
};
$(".shm-toggler").each(function(idx, elm) {
var tid = $(elm).data("toggle-sel");
@ -65,7 +67,6 @@ $(document).ready(function() {
sidebar_hidden.push(tid);
}
else {
console.log("unhiding", tid);
for (var i in sidebar_hidden) {
if (sidebar_hidden[i] === tid) {
sidebar_hidden.splice(i, 1);