summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/prado/validation3.js
diff options
context:
space:
mode:
authorwei <>2006-10-19 00:20:00 +0000
committerwei <>2006-10-19 00:20:00 +0000
commitec1c561946e785fb34a4809b8b154e2e4f0ffb8b (patch)
treebd8689cea68ed21df492f68f58d7b1647f74cf89 /framework/Web/Javascripts/prado/validation3.js
parent80c82147fc8143eb45ef2000a49fabac889a1615 (diff)
fixed onFailure and onSuccess in TActiveCustomValidator
Diffstat (limited to 'framework/Web/Javascripts/prado/validation3.js')
-rw-r--r--framework/Web/Javascripts/prado/validation3.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/Web/Javascripts/prado/validation3.js b/framework/Web/Javascripts/prado/validation3.js
index 893fceef..8904921f 100644
--- a/framework/Web/Javascripts/prado/validation3.js
+++ b/framework/Web/Javascripts/prado/validation3.js
@@ -1144,11 +1144,15 @@ Prado.WebUI.TActiveCustomValidator = Class.extend(Prado.WebUI.TBaseValidator,
this.isValid = data;
this.requestDispatched = false;
Prado.Validation.validate(this.options.FormID, this.group,null);
+ if(typeof(this.options.onSuccess) == "function")
+ this.options.onSuccess(request,data);
},
callbackOnFailure : function(request, data)
{
this.requestDispatched = false;
+ if(typeof(this.options.onFailure) == "function")
+ this.options.onFailure(request,data);
}
});