diff options
author | wei <> | 2006-05-02 08:28:17 +0000 |
---|---|---|
committer | wei <> | 2006-05-02 08:28:17 +0000 |
commit | d255f4d0e332740b3984e21ce3f7a4a4f1968ba3 (patch) | |
tree | 84bf54643e3a188330f6b7b5043efeed1aa44b6e /framework/Web/Javascripts/js/validator.js | |
parent | c5983c0440913cd67f3744c7dda3c3bfc7eee0ed (diff) |
Adding more work on ActiveControls.
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 66b48866..41b40fcd 100644 --- a/framework/Web/Javascripts/js/validator.js +++ b/framework/Web/Javascripts/js/validator.js @@ -3,7 +3,8 @@ Prado.Validation=Class.create();Object.extend(Prado.Validation,{managers:{},vali {if(this.managers[formID]) {return this.managers[formID].validate(groupID,invoker);} else -{throw new Error("Form '"+form+"' is not registered with Prado.Validation");}},isValid:function(formID,groupID) +{throw new Error("Form '"+form+"' is not registered with Prado.Validation");}},getForm:function() +{var keys=$H(this.managers).keys();return keys[0];},isValid:function(formID,groupID) {if(this.managers[formID]) return this.managers[formID].isValid(groupID);return true;},addValidator:function(formID,validator) {if(this.managers[formID]) |