[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/rotterdam/zope3.js Again some corrections to the JavaScript code. Sorry, I'm not really a JavaScript guy...

Florian Lindner Florian.Lindner at xgm.de
Sun Feb 4 08:40:39 EST 2007


Log message for revision 72359:
  Again some corrections to the JavaScript code. Sorry, I'm not really a JavaScript guy...
  

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-04 03:27:39 UTC (rev 72358)
+++ Zope3/trunk/src/zope/app/rotterdam/zope3.js	2007-02-04 13:40:37 UTC (rev 72359)
@@ -67,7 +67,7 @@
 
 
 //----------------------------------------------------------------------------
-// toggle the status of all checkboxes that have class = "className"
+// toggle the status of all checkboxes that have class == "className"
 //----------------------------------------------------------------------------
 function updateCheckboxes(master, className) {
     newState = master.checked;
@@ -77,8 +77,8 @@
         obj = objects[x];
         if (obj.type == "checkbox") {
             var classes = obj.className.split(" ");
-            for (var i = 0; i < classes.length(); i++)
-                if (i == className) {
+            for (var i = 0; i < classes.length; i++)
+                if (classes[i] == className) {
                     obj.checked = newState;
                     break;
                 }



More information about the Zope3-Checkins mailing list