[Rt-commit] r8951 - rt/branches/3.7-EXPERIMENTAL/html/NoAuth/js

ruz at bestpractical.com ruz at bestpractical.com
Thu Sep 6 10:28:23 EDT 2007


Author: ruz
Date: Thu Sep  6 10:28:10 2007
New Revision: 8951

Modified:
   rt/branches/3.7-EXPERIMENTAL/html/NoAuth/js/cascaded.js

Log:
* skip child nodes without labels, thanks to Andrew Kornilov for the patch

Modified: rt/branches/3.7-EXPERIMENTAL/html/NoAuth/js/cascaded.js
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/NoAuth/js/cascaded.js	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/NoAuth/js/cascaded.js	Thu Sep  6 10:28:10 2007
@@ -51,6 +51,7 @@
     var i;
     var children = select.childNodes;
     for (i in children) {
+        if (!children[i].label) { continue };
         if ( val == '' || children[i].label.substr(0, val.length) == val) {
             show(children[i]);
             continue;


More information about the Rt-commit mailing list