[Rt-commit] r2947 - rt/branches/CHALDEA-EXPERIMENTAL/html/NoAuth
autrijus at bestpractical.com
autrijus at bestpractical.com
Tue May 24 14:19:19 EDT 2005
Author: autrijus
Date: Tue May 24 14:19:18 2005
New Revision: 2947
Added:
rt/branches/CHALDEA-EXPERIMENTAL/html/NoAuth/cascaded.js
Log:
* supporting js for cascaded.
Added: rt/branches/CHALDEA-EXPERIMENTAL/html/NoAuth/cascaded.js
==============================================================================
--- (empty file)
+++ rt/branches/CHALDEA-EXPERIMENTAL/html/NoAuth/cascaded.js Tue May 24 14:19:18 2005
@@ -0,0 +1,19 @@
+function filter_cascade (id, val) {
+ var select = document.getElementById(id);
+ if (!select) { return };
+ var i;
+ var children = select.childNodes;
+ for (i in children) {
+ var style = children[i].style;
+ if (!style) { continue };
+ if (val == '') {
+ style.display = children[i].label ? 'none' : 'block';
+ continue;
+ }
+ if (children[i].label.substr(0, val.length) == val) {
+ style.display = 'block';
+ continue;
+ }
+ style.display = 'none';
+ }
+}
More information about the Rt-commit
mailing list