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

Modified Files:
      Tag: MMBase-1_8
        validation.js.jsp 
Log Message:
simplified


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.24
retrieving revision 1.11.2.25
diff -u -b -r1.11.2.24 -r1.11.2.25
--- validation.js.jsp   4 Apr 2008 10:16:20 -0000       1.11.2.24
+++ validation.js.jsp   14 Apr 2008 14:19:18 -0000      1.11.2.25
@@ -10,7 +10,7 @@
  *                              then call validator.setup(window[,root]).
  *
  * @author Michiel Meeuwissen
- * @version $Id: validation.js.jsp,v 1.11.2.24 2008/04/04 10:16:20 michiel Exp 
$
+ * @version $Id: validation.js.jsp,v 1.11.2.25 2008/04/14 14:19:18 michiel Exp 
$
  */
 var validators = new Array();
 
@@ -35,7 +35,7 @@
 }
 setTimeout("watcher()", 500);
 
-function MMBaseValidator(w, root) {
+function MMBaseValidator(root) {
 
     this.logEnabled   = false;
     this.traceEnabled = false;
@@ -45,8 +45,8 @@
     //this.changedElements  = 0;
     this.elements        = [];
     this.validateHook;
-    this.setup(w);
     this.root = root;
+    this.setup();
     this.lang          = null;
     this.sessionName   = null;
     this.id = validators.push(this);
@@ -56,8 +56,8 @@
 
 }
 
-MMBaseValidator.prototype.setup = function(w) {
-    if (w != null) {
+MMBaseValidator.prototype.setup = function() {
+    if (this.root != null) {
        var self = this;
        $(document).ready(function(event) {
            self.onLoad(event);
@@ -800,6 +800,7 @@
 
 }
 
+
 /**
  * Adds event handlers to all mm_validate form entries
  */
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to