Author: andre Date: 2009-11-26 17:36:48 +0100 (Thu, 26 Nov 2009) New Revision: 39980
Modified: openimages/trunk/src/main/webapp/style/js/mmajaxeditor.js Log: checking if validator has already been loaded Modified: openimages/trunk/src/main/webapp/style/js/mmajaxeditor.js =================================================================== --- openimages/trunk/src/main/webapp/style/js/mmajaxeditor.js 2009-11-26 16:14:28 UTC (rev 39979) +++ openimages/trunk/src/main/webapp/style/js/mmajaxeditor.js 2009-11-26 16:36:48 UTC (rev 39980) @@ -98,7 +98,7 @@ self.bindMMAjaxeditorEvents(); } else { $(self.el).find("form").ajaxForm(options); - if (typeof MMBaseValidator == "function") { + if (typeof MMBaseValidator == "function" && self.validator == undefined) { self.validator = new MMBaseValidator(self.el); } self.bindMMAjaxeditorEvents( $(self.el).find("form") ); @@ -110,7 +110,7 @@ $(this.el).html(result); // replace everything (edit/delete) } $(this.el).find("form").ajaxForm(options); - if (typeof MMBaseValidator == "function") { + if (typeof MMBaseValidator == "function" && this.validator == undefined) { this.validator = new MMBaseValidator(this.el); } this.bindMMAjaxeditorEvents( $(this.el).find("form") ); _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs