[Rt-commit] r4458 - in rt/branches/3.5-TESTING: .

kevinr at bestpractical.com kevinr at bestpractical.com
Tue Jan 31 21:12:47 EST 2006


Author: kevinr
Date: Tue Jan 31 21:12:46 2006
New Revision: 4458

Modified:
   rt/branches/3.5-TESTING/   (props changed)
   rt/branches/3.5-TESTING/html/NoAuth/js/cascaded.js

Log:
 r10725 at SAD-GIRL-IN-SNOW:  kevinr | 2006-01-31 21:08:57 -0500
 * Reverted cascaded.js to the previous version -- r4390 seems to have 
 refactored the code in a way which doesn't work, or doesn't work in all 
 browsers.


Modified: rt/branches/3.5-TESTING/html/NoAuth/js/cascaded.js
==============================================================================
--- rt/branches/3.5-TESTING/html/NoAuth/js/cascaded.js	(original)
+++ rt/branches/3.5-TESTING/html/NoAuth/js/cascaded.js	Tue Jan 31 21:12:46 2006
@@ -4,10 +4,16 @@
     var i;
     var children = select.childNodes;
     for (i in children) {
-        if ( val == '' || children[i].label.substr(0, val.length) == val) {
-            show(children[i]);
+        var style = children[i].style;
+        if (!style) { continue };
+        if (val == '') {
+            style.display = 'block';
             continue;
         }
-        hide(children[i]);
+        if (children[i].label.substr(0, val.length) == val) {
+            style.display = 'block';
+            continue;
+        }
+        style.display = 'none';
     }
 }


More information about the Rt-commit mailing list