Update of /var/cvs/html/mmbase/validation
In directory james.mmbase.org:/tmp/cvs-serv31022
Modified Files:
Tag: MMBase-1_8
validation.js.jsp
Log Message:
a bit more backwards compatible
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.11.2.27
retrieving revision 1.11.2.28
diff -u -b -r1.11.2.27 -r1.11.2.28
--- validation.js.jsp 18 Apr 2008 08:53:54 -0000 1.11.2.27
+++ validation.js.jsp 18 Apr 2008 08:58:09 -0000 1.11.2.28
@@ -9,7 +9,7 @@
* then call validator.setup(el).
*
* @author Michiel Meeuwissen
- * @version $Id: validation.js.jsp,v 1.11.2.27 2008/04/18 08:53:54 michiel Exp
$
+ * @version $Id: validation.js.jsp,v 1.11.2.28 2008/04/18 08:58:09 michiel Exp
$
*/
@@ -62,7 +62,10 @@
MMBaseValidator.prototype.setup = function(el) {
- if (el != null) this.root = el;
+ if (el != null) {
+ this.root = el;
+ if (this.root == window) this.root = this.root.document;
+ }
if (this.root != null) {
var self = this;
$(document).ready(function(event) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs