From ec1c561946e785fb34a4809b8b154e2e4f0ffb8b Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 19 Oct 2006 00:20:00 +0000 Subject: fixed onFailure and onSuccess in TActiveCustomValidator --- framework/Web/Javascripts/js/debug/validator.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'framework/Web/Javascripts/js/debug') diff --git a/framework/Web/Javascripts/js/debug/validator.js b/framework/Web/Javascripts/js/debug/validator.js index c38ec2e4..af429e68 100644 --- a/framework/Web/Javascripts/js/debug/validator.js +++ b/framework/Web/Javascripts/js/debug/validator.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); } }); -- cgit v1.2.3