summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/source
diff options
context:
space:
mode:
authorxue <>2007-06-21 01:16:52 +0000
committerxue <>2007-06-21 01:16:52 +0000
commit725cb38eaaee72ba27bef696dbf1db81486e11e2 (patch)
treeeba5ff82f2c1c09aa126b4a0fb76ab77b3762229 /framework/Web/Javascripts/source
parentefd58a6761c92e688d1670767efa4986f013d081 (diff)
Fixed #488, #620, #632, #633.
Diffstat (limited to 'framework/Web/Javascripts/source')
-rw-r--r--framework/Web/Javascripts/source/prado/validator/validation3.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/framework/Web/Javascripts/source/prado/validator/validation3.js b/framework/Web/Javascripts/source/prado/validator/validation3.js
index fe496ed9..5a59d66e 100644
--- a/framework/Web/Javascripts/source/prado/validator/validation3.js
+++ b/framework/Web/Javascripts/source/prado/validator/validation3.js
@@ -584,7 +584,7 @@ Prado.WebUI.TBaseValidator.prototype =
this.isValid = true;
this._isObserving = {};
this.group = null;
- //this.requestDispatched = false;
+ this.requestDispatched = false;
this.options = options;
this.control = $(options.ControlToValidate);
@@ -689,7 +689,7 @@ Prado.WebUI.TBaseValidator.prototype =
if(typeof(this.options.OnValidate) == "function")
{
- //if(this.requestDispatched == false)
+ if(this.requestDispatched == false)
this.options.OnValidate(this, invoker);
}
@@ -713,11 +713,11 @@ Prado.WebUI.TBaseValidator.prototype =
{
if(typeof(this.options.OnValidationSuccess) == "function")
{
- //if(this.requestDispatched == false)
- //{
+ if(this.requestDispatched == false)
+ {
this.refreshControlAndMessage();
this.options.OnValidationSuccess(this, invoker);
- //}
+ }
}
else
this.updateControl();
@@ -726,11 +726,11 @@ Prado.WebUI.TBaseValidator.prototype =
{
if(typeof(this.options.OnValidationError) == "function")
{
- //if(this.requestDispatched == false)
- //{
+ if(this.requestDispatched == false)
+ {
this.refreshControlAndMessage();
this.options.OnValidationError(this, invoker)
- //}
+ }
}
else
this.updateControl();
@@ -1146,8 +1146,8 @@ Prado.WebUI.TActiveCustomValidator = Class.extend(Prado.WebUI.TBaseValidator,
evaluateIsValid : function()
{
value = this.getValidationValue();
- //if(!this.requestDispatched && (""+value) != (""+this.validatingValue))
- if((""+value) != (""+this.validatingValue))
+ if(!this.requestDispatched && (""+value) != (""+this.validatingValue))
+ //if((""+value) != (""+this.validatingValue))
{
this.validatingValue = value;
request = new Prado.CallbackRequest(this.options.EventTarget, this.options);