summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/source
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Javascripts/source')
-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;
},
/**