diff options
author | wei <> | 2006-08-29 12:06:35 +0000 |
---|---|---|
committer | wei <> | 2006-08-29 12:06:35 +0000 |
commit | f0a6fad58f8eae14554443081ffb166aaf71762a (patch) | |
tree | a1a234da831f11c190a0cef98d01c6f0dacdce1c /framework/Web/Javascripts/js/validator.js | |
parent | c1937cccd0985e86e247287faa9ac60870feecd7 (diff) |
fixed autocomplete problem and add TInPlcaeTextbox
Diffstat (limited to 'framework/Web/Javascripts/js/validator.js')
-rw-r--r-- | framework/Web/Javascripts/js/validator.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/js/validator.js b/framework/Web/Javascripts/js/validator.js index 711c996e..02380663 100644 --- a/framework/Web/Javascripts/js/validator.js +++ b/framework/Web/Javascripts/js/validator.js @@ -95,7 +95,8 @@ Prado.Element.focus(this.options.FocusElementID);this.visible=true;},updateContr control.removeClassName(CssClass);else control.addClassName(CssClass);}},hide:function() {this.isValid=true;this.updateControl();this.visible=false;},validate:function(invoker) -{if(typeof(this.options.OnValidate)=="function") +{if(!this.control) +this.control=$(this.options.ControlToValidate);if(typeof(this.options.OnValidate)=="function") this.options.OnValidate(this,invoker);if(this.enabled) this.isValid=this.evaluateIsValid();else this.isValid=true;if(this.isValid) |