diff options
author | wei <> | 2006-08-05 03:42:04 +0000 |
---|---|---|
committer | wei <> | 2006-08-05 03:42:04 +0000 |
commit | c927f9343001b456c1fa25dc541c3f1b005510f8 (patch) | |
tree | 77471b0dbb0327e1c601ec4ffaeb02d9222dc4bd /framework/Web | |
parent | 58f7aa0ebe9920d33a22b95c3f73fc4b70a75426 (diff) |
Fixed #278
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/Javascripts/js/validator.js | 3 | ||||
-rw-r--r-- | framework/Web/Javascripts/prado/validation3.js | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/js/validator.js b/framework/Web/Javascripts/js/validator.js index 0e39d191..cecc6881 100644 --- a/framework/Web/Javascripts/js/validator.js +++ b/framework/Web/Javascripts/js/validator.js @@ -96,7 +96,8 @@ control.addClassName(CssClass);}},hide:function() {this.isValid=true;this.updateControl();this.visible=false;},validate:function(invoker) {if(typeof(this.options.OnValidate)=="function") this.options.OnValidate(this,invoker);if(this.enabled) -this.isValid=this.evaluateIsValid();if(this.isValid) +this.isValid=this.evaluateIsValid();else +this.isValid=true;if(this.isValid) {if(typeof(this.options.OnSuccess)=="function") {this.visible=true;this.message.style.visibility="visible";this.updateControlCssClass(this.control,this.isValid);this.options.OnSuccess(this,invoker);} else diff --git a/framework/Web/Javascripts/prado/validation3.js b/framework/Web/Javascripts/prado/validation3.js index b1b20722..139f99f1 100644 --- a/framework/Web/Javascripts/prado/validation3.js +++ b/framework/Web/Javascripts/prado/validation3.js @@ -652,6 +652,8 @@ Prado.WebUI.TBaseValidator.prototype = if(this.enabled)
this.isValid = this.evaluateIsValid();
+ else
+ this.isValid = true;
if(this.isValid)
{
|