diff options
author | godzilla80@gmx.net <> | 2009-11-08 08:05:18 +0000 |
---|---|---|
committer | godzilla80@gmx.net <> | 2009-11-08 08:05:18 +0000 |
commit | 38a149c8079964b09b1a259a311a6afddec4f046 (patch) | |
tree | c17f31c2a6afdcdd8ff255d50e4bbf54e303e564 /framework/Web/Javascripts | |
parent | 58498f0d70d8396ef0dc1c9e8bc4f28151771bee (diff) |
Always render clientside counterparts of validation control even if not enabled, but pass-through Enabled property, to allow Enabled/Disable of validator on callback.
Diffstat (limited to 'framework/Web/Javascripts')
-rw-r--r-- | framework/Web/Javascripts/source/prado/validator/validation3.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/source/prado/validator/validation3.js b/framework/Web/Javascripts/source/prado/validator/validation3.js index 18b1d0c2..4e799677 100644 --- a/framework/Web/Javascripts/source/prado/validator/validation3.js +++ b/framework/Web/Javascripts/source/prado/validator/validation3.js @@ -795,7 +795,7 @@ Prado.WebUI.TBaseValidator.prototype = * Wether the validator is enabled (default true)
* @var {boolean} enabled
*/
- this.enabled = true;
+ this.enabled = options.Enabled;
/**
* Visibility state of validator(default false)
* @var {boolean} visible
@@ -837,6 +837,7 @@ Prado.WebUI.TBaseValidator.prototype = * @var {element} message
*/
this.message = $(options.ID);
+
Prado.Registry.set(options.ID, this);
if(this.control && this.message)
{
|