summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/Javascripts/source/prado/validator/validation3.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/framework/Web/Javascripts/source/prado/validator/validation3.js b/framework/Web/Javascripts/source/prado/validator/validation3.js
index b0710ed2..bdf0f592 100644
--- a/framework/Web/Javascripts/source/prado/validator/validation3.js
+++ b/framework/Web/Javascripts/source/prado/validator/validation3.js
@@ -342,10 +342,13 @@ Prado.ValidationManager.prototype =
validateControl : function (id)
{
var valid = true;
- jQuery.each(this.controls[id], function (idx, element) {
- if(!element.validate(null))
- valid = false;
- });
+ if(this.controls[id])
+ {
+ jQuery.each(this.controls[id], function (idx, element) {
+ if(!element.validate(null))
+ valid = false;
+ });
+ }
return valid;
},