Update of /var/cvs/html/mmbase/validation
In directory james.mmbase.org:/tmp/cvs-serv28507

Modified Files:
        Widgets.js 
Log Message:
forgot to replace one 'this' with 'opt'


See also: http://cvs.mmbase.org/viewcvs/html/mmbase/validation


Index: Widgets.js
===================================================================
RCS file: /var/cvs/html/mmbase/validation/Widgets.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- Widgets.js  26 Nov 2008 10:55:22 -0000      1.3
+++ Widgets.js  26 Nov 2008 11:09:37 -0000      1.4
@@ -9,7 +9,7 @@
  *  -  Widgets.instance.boxes(selector):  Makes select into a list of 
checkboxes (multiple) or radioboxes (single)
  *  -  Widgets.instance.twoMultiples(selector):  Splits up multiple selection 
into 2 boxes, the left one containing the selected values, the right one the 
optiosn which are not selected.
  *
- * @version $Id: Widgets.js,v 1.3 2008/11/26 10:55:22 michiel Exp $   BETA
+ * @version $Id: Widgets.js,v 1.4 2008/11/26 11:09:37 michiel Exp $   BETA
  * @author Michiel Meeuwissen
 
  */
@@ -149,6 +149,7 @@
     var options = select.options;
     for (var i = 0; i < options.length; i++) {
         var opt = options[i];
+        try {
         if (! $(opt).hasClass("head")) {
             var nobr = $("<nobr />");
             nobr.addClass(t.attr('name'));
@@ -177,9 +178,12 @@
             }
             var span = $("<span class='head' />");
             div.append(span);
-            span.text($(this).text());
+                span.text($(opt).text());
             first = false;
         }
+        } catch(err) {
+            //console.log(err);
+        }
     }
     hidden.attr("value", Widgets.prototype.setToString(hidden[0].values));
     t.after(text);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to