[Checkins] SVN: Zope3/trunk/src/zope/app/rotterdam/zope3.js
Corrected my change,
so that only checkboxes of class "slaveBox" are toggled. (the code
before was not really working).
Florian Lindner
Florian.Lindner at xgm.de
Thu Feb 1 15:44:34 EST 2007
Log message for revision 72307:
Corrected my change, so that only checkboxes of class "slaveBox" are toggled. (the code before was not really working).
Changed:
U Zope3/trunk/src/zope/app/rotterdam/zope3.js
-=-
Modified: Zope3/trunk/src/zope/app/rotterdam/zope3.js
===================================================================
--- Zope3/trunk/src/zope/app/rotterdam/zope3.js 2007-02-01 20:24:34 UTC (rev 72306)
+++ Zope3/trunk/src/zope/app/rotterdam/zope3.js 2007-02-01 20:44:33 UTC (rev 72307)
@@ -75,7 +75,13 @@
count = objects.length;
for(x = 0; x < count; x++) {
obj = objects[x];
- if ((obj.type == "checkbox") && (obj.className.indexOf(className) != -1 ))
- obj.checked = newState;
+ if (obj.type == "checkbox") {
+ var classes = obj.className.split(" ");
+ for (var i = 0; i < classes.length(); i++)
+ if (i == className) {
+ obj.checked = newState;
+ break;
+ }
+ }
}
}
More information about the Checkins
mailing list