Update of /var/cvs/html/mmbase/validation
In directory james.mmbase.org:/tmp/cvs-serv29875
Modified Files:
Tag: MMBase-1_8
Widgets.js
Log Message:
conserve possible classes the optiosn may have in the nobr's
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.5
retrieving revision 1.2.2.6
diff -u -b -r1.2.2.5 -r1.2.2.6
--- Widgets.js 26 Nov 2008 11:09:11 -0000 1.2.2.5
+++ Widgets.js 10 Dec 2008 09:53:58 -0000 1.2.2.6
@@ -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.5 2008/11/26 11:09:11 michiel Exp $ BETA
+ * @version $Id: Widgets.js,v 1.2.2.6 2008/12/10 09:53:58 michiel Exp $ BETA
* @author Michiel Meeuwissen
*/
@@ -153,6 +153,7 @@
if (! $(opt).hasClass("head")) {
var nobr = $("<nobr />");
nobr.addClass(t.attr('name'));
+ nobr.addClass($(opt).attr('class'));
var input = $("<input type='checkbox' value='" + opt.value +
"' " + (opt.selected ? "checked='checked'" : "") + " />");
input.attr('name', t.attr('name') + "___" + opt.value);
if (opt.selected) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs