Author: michiel Date: 2010-01-20 16:35:53 +0100 (Wed, 20 Jan 2010) New Revision: 40637
Modified: mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/validation/validation.js.jsp Log: enforce of length constrictions not used in javascriptvalidation Modified: mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/validation/validation.js.jsp =================================================================== --- mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/validation/validation.js.jsp 2010-01-20 15:03:15 UTC (rev 40636) +++ mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/validation/validation.js.jsp 2010-01-20 15:35:53 UTC (rev 40637) @@ -279,9 +279,10 @@ } el.mm_minLength_set = true; } - - if (el.mm_minLength != null && length < el.mm_minLength) { - return false; + if (this.enforce(el, el.mm_minLength_enforce)) { + if (el.mm_minLength != null && length < el.mm_minLength) { + return false; + } } if (el.mm_maxLength_set == null) { @@ -293,8 +294,10 @@ el.mm_maxLength_set = true; } - if (el.mm_maxLength != null && length > el.mm_maxLength) { - return false; + if (this.enforce(el, el.mm_maxLength_enforce)) { + if (el.mm_maxLength != null && length > el.mm_maxLength) { + return false; + } } if (el.mm_length_set == null) { @@ -306,8 +309,10 @@ el.mm_length_set = true; } - if (el.mm_length != null && length != el.mm_length) { - return false; + if (this.enforce(el, el.mm_length_enforce)) { + if (el.mm_length != null && length != el.mm_length) { + return false; + } } return true; } _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs