From 772258aa83174b20b6ba43296cc21d1a7f5dfe92 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 23 Jul 2014 20:35:42 +0200 Subject: Fix #528 --- framework/Web/Javascripts/source/prado/validator/validation3.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/framework/Web/Javascripts/source/prado/validator/validation3.js b/framework/Web/Javascripts/source/prado/validator/validation3.js index 9f8c7a98..d5cd5673 100644 --- a/framework/Web/Javascripts/source/prado/validator/validation3.js +++ b/framework/Web/Javascripts/source/prado/validator/validation3.js @@ -341,7 +341,13 @@ Prado.ValidationManager.prototype = */ validateControl : function (id) { - return this.controls[id] ? this.controls[id].invoke('validate',null).all() : true; + var valid = true; + jQuery.each(this.controls[id], function (idx, element) { + if(!element.validate(null)) + valid = false; + }); + + return valid; }, /** -- cgit v1.2.3