diff options
Diffstat (limited to 'framework/Web/Javascripts/prado/validation.js')
-rw-r--r-- | framework/Web/Javascripts/prado/validation.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/framework/Web/Javascripts/prado/validation.js b/framework/Web/Javascripts/prado/validation.js index ba68becc..454f53f0 100644 --- a/framework/Web/Javascripts/prado/validation.js +++ b/framework/Web/Javascripts/prado/validation.js @@ -301,11 +301,8 @@ Prado.Validation.IsValid = function(form) //when group validation, only validators in the active group are visible.
validators[i].visible = Prado.Validation.IsGroupValidation ? validators[i].inActiveGroup() : true;
- if(Prado.Validation.HasTargetGroup || validators[i].group)
- {
- if(validators[i].group != Prado.Validation.CurrentTargetGroup)
- validators[i].enabled = false;
- }
+ if(Prado.Validation.HasTargetGroup)
+ validators[i].enabled = Prado.Validation.CurrentTargetGroup == validators[i].group
valid &= validators[i].validate();
}
@@ -314,6 +311,7 @@ Prado.Validation.IsValid = function(form) Prado.Validation.ShowSummary(form);
//reset all the group active status to false
Prado.Validation.UpdateActiveGroup();
+
return valid;
}
|