From 9b2b44cd173831c77861c7076d939e1659ed3ca2 Mon Sep 17 00:00:00 2001 From: rojaro <> Date: Wed, 27 Apr 2011 18:52:37 +0000 Subject: fixed #103 --- .../Web/Javascripts/source/prado/validator/validation3.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'framework/Web/Javascripts/source') 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(); + } } - }, /** -- cgit v1.2.3