summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <ottodavid@gmx.net>2014-07-23 20:35:42 +0200
committerDavid <ottodavid@gmx.net>2014-07-23 20:35:42 +0200
commit772258aa83174b20b6ba43296cc21d1a7f5dfe92 (patch)
tree641afe1ab2422c4fb4c81a502a730bc9ac839c74
parent064bf94147a90234007c8a124ba7bd9fc27fc0cd (diff)
Fix #528
-rw-r--r--framework/Web/Javascripts/source/prado/validator/validation3.js8
1 files changed, 7 insertions, 1 deletions
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;
},
/**