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

Modified Files:
      Tag: MMBase-1_8
        Widgets.js 
Log Message:
added some classes


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.2.2.2
retrieving revision 1.2.2.3
diff -u -b -r1.2.2.2 -r1.2.2.3
--- Widgets.js  11 Nov 2008 10:46:42 -0000      1.2.2.2
+++ Widgets.js  11 Nov 2008 13:25:23 -0000      1.2.2.3
@@ -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.2.2.2 2008/11/11 10:46:42 michiel Exp $   BETA
+ * @version $Id: Widgets.js,v 1.2.2.3 2008/11/11 13:25:23 michiel Exp $   BETA
  * @author Michiel Meeuwissen
 
  */
@@ -112,6 +112,7 @@
             }
 
             nobr.appendChild(input);
+            $(nobr).addClass("index" + i);
             if (! min) {
                 nobr.appendChild(document.createTextNode($(option).text()));
             }
@@ -148,6 +149,7 @@
     $(select.options).each(function() {
         if (! $(this).hasClass("head")) {
             var nobr = $("<nobr />");
+            nobr.addClass(t.attr('name'));
             var input = $("<input type='checkbox' value='" + this.value + "' 
/>");
             nobr.append(input).append($(this).text());
             div.append(nobr);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to