Update of /var/cvs/html/mmbase/validation In directory james.mmbase.org:/tmp/cvs-serv1070
Modified Files: validation.js.jsp Log Message: if no elements at all, also call the validateHook See also: http://cvs.mmbase.org/viewcvs/html/mmbase/validation Index: validation.js.jsp =================================================================== RCS file: /var/cvs/html/mmbase/validation/validation.js.jsp,v retrieving revision 1.43 retrieving revision 1.44 diff -u -b -r1.43 -r1.44 --- validation.js.jsp 20 Mar 2008 14:00:38 -0000 1.43 +++ validation.js.jsp 20 Mar 2008 14:07:56 -0000 1.44 @@ -10,7 +10,7 @@ * then call validator.setup(window[,root]). * * @author Michiel Meeuwissen - * @version $Id: validation.js.jsp,v 1.43 2008/03/20 14:00:38 michiel Exp $ + * @version $Id: validation.js.jsp,v 1.44 2008/03/20 14:07:56 michiel Exp $ */ var validators = new Array(); @@ -726,9 +726,10 @@ if (el == null) { el = document.documentElement; } - this.log("Will validate elements in " + el + " (" + els.length + " elements)"); var els = getElementsByClass(el, "mm_validate"); + this.log("Will validate elements in " + el + " (" + els.length + " elements)"); + for (var i = 0; i < els.length; i++) { var entry = els[i]; if (entry.type == "textarea") { _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs