Fixed sliders not working right with non-Oxygen themes
authorDan
Sat, 29 Nov 2008 00:19:39 -0500
changeset 755 9b4cd3ef42f3
parent 754 75decd836c94
child 756 e8cf18383425
Fixed sliders not working right with non-Oxygen themes
includes/clientside/static/sliders.js
--- a/includes/clientside/static/sliders.js	Sat Nov 29 00:19:16 2008 -0500
+++ b/includes/clientside/static/sliders.js	Sat Nov 29 00:19:39 2008 -0500
@@ -58,7 +58,13 @@
     if ( !el )
       continue;
     while ( el.tagName != 'DIV' )
+    {
       el = el.previousSibling;
+      if ( !el )
+        break;
+    }
+    if ( !el )
+      continue;
     var toggler = el.getElementsByTagName('a')[0];
     if ( !toggler )
       continue;