Change to search behavior for heading+link in sidebar collapse code
authorDan
Fri, 06 Mar 2009 11:19:29 -0500
changeset 855 4f7521dd981f
parent 854 7707f60d4a71
child 856 0b7ff06aad13
Change to search behavior for heading+link in sidebar collapse code
includes/clientside/static/sliders.js
--- a/includes/clientside/static/sliders.js	Fri Mar 06 11:18:34 2009 -0500
+++ b/includes/clientside/static/sliders.js	Fri Mar 06 11:19:29 2009 -0500
@@ -9,7 +9,7 @@
     i = 0
     for every div with class "slideblock", do
       if ( cookie['mdgSliderState_' || i] == 'closed' )
-        hide(div)
+        div.hide()
         
       div.trigger.addEvent onclick():
         if ( div.hidden )
@@ -57,7 +57,7 @@
     var el = div.previousSibling;
     if ( !el )
       continue;
-    while ( el.tagName != 'DIV' )
+    while ( el.tagName == undefined )
     {
       el = el.previousSibling;
       if ( !el )