diff options
author | rojaro <> | 2011-04-27 18:52:37 +0000 |
---|---|---|
committer | rojaro <> | 2011-04-27 18:52:37 +0000 |
commit | 9b2b44cd173831c77861c7076d939e1659ed3ca2 (patch) | |
tree | 130fbc3436611416979d1634c9564bb987922d27 /framework/Web/Javascripts | |
parent | d4cab2e2e139095b95bfb2cae74ccb13ae4f91d1 (diff) |
fixed #103
Diffstat (limited to 'framework/Web/Javascripts')
-rw-r--r-- | framework/Web/Javascripts/source/prado/validator/validation3.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/framework/Web/Javascripts/source/prado/validator/validation3.js b/framework/Web/Javascripts/source/prado/validator/validation3.js index e24e8ffd..f19b3445 100644 --- a/framework/Web/Javascripts/source/prado/validator/validation3.js +++ b/framework/Web/Javascripts/source/prado/validator/validation3.js @@ -1585,11 +1585,15 @@ Prado.WebUI.TActiveCustomValidator = Class.extend(Prado.WebUI.TBaseValidator, this.updateValidationDisplay();
this.manager.updateSummary(this.group);
// Redispatch initial request if any
- if (this.invoker instanceof Prado.CallbackRequest)
- {
- this.invoker.dispatch();
+ if(this.isValid) {
+ if(this.invoker instanceof Prado.CallbackRequest) {
+ this.invoker.dispatch();
+ } else {
+ $('PRADO_POSTBACK_TARGET').value = this.invoker.id;
+ $('PRADO_POSTBACK_PARAMETER').value = null;
+ $(this.options.FormID).submit();
+ }
}
-
},
/**
|