From f1f33db1f85c0893205a4a00c203d884dc1af1a5 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 10 Sep 2006 01:03:56 +0000 Subject: Changed TCallbackEventParameter::Parameter to TCallbackEventParameter::CallbackParameter Add TActiveButton and TActiveCheckBox quickstart docs. --- framework/Web/Javascripts/js/debug/ajax.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'framework/Web/Javascripts/js/debug/ajax.js') diff --git a/framework/Web/Javascripts/js/debug/ajax.js b/framework/Web/Javascripts/js/debug/ajax.js index 7d99cb57..9835e7e8 100644 --- a/framework/Web/Javascripts/js/debug/ajax.js +++ b/framework/Web/Javascripts/js/debug/ajax.js @@ -670,7 +670,7 @@ Prado.CallbackRequest.prototype = * Sets the request parameter * @param {Object} parameter value */ - setParameter : function(value) + setCallbackParameter : function(value) { this.options['params'] = value; }, @@ -678,7 +678,7 @@ Prado.CallbackRequest.prototype = /** * @return {Object} request paramater value. */ - getParameter : function() + getCallbackParameter : function() { return this.options['params']; }, @@ -2026,7 +2026,8 @@ Prado.WebUI.TActiveCheckBox = Class.extend(Prado.WebUI.CallbackControl, onPostBack : function(event, options) { request = new Prado.CallbackRequest(options.EventTarget, options); - request.dispatch(); + if(request.dispatch()==false) + Event.stop(event); } }); @@ -2316,7 +2317,7 @@ Prado.WebUI.TValueTriggeredCallback = Base.extend( { request = new Prado.CallbackRequest(this.options.EventTarget, this.options); param = {'OldValue' : oldValue, 'NewValue' : newValue}; - request.setParameter(param); + request.setCallbackParameter(param); request.dispatch(); } }, -- cgit v1.2.3