From cf984085056c41c86c5b9fe2144c2e7a73eb807d Mon Sep 17 00:00:00 2001 From: David Date: Wed, 18 Feb 2015 18:12:16 +0100 Subject: Fix #545 Return the created CallbackRequest on Prado.Callback and Prado.JuiCallback --- framework/Web/Javascripts/source/prado/activecontrols/ajax3.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Web') diff --git a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js index c42597f1..7ca7e181 100644 --- a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js +++ b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js @@ -873,7 +873,7 @@ jQuery(function() * @param mixed parameter to pass to callback handler on the server side. * @param function client side onSuccess event handler. * @param object additional request options. - * @return boolean always false. + * @return Prado.CallbackRequest request that was created */ Prado.Callback = function(UniqueID, parameter, onSuccess, options) { @@ -888,14 +888,14 @@ Prado.Callback = function(UniqueID, parameter, onSuccess, options) var request = new Prado.CallbackRequest(UniqueID, callback); request.dispatch(); - return false; + return request; }; /** * Create a new callback request initiated by jQuery-UI elements. * @param event object as sent by jQuery-UI events * @param ui object as sent by jQuery-UI events - * @return boolean always false. + * @return Prado.CallbackRequest request that was created */ Prado.JuiCallback = function(UniqueID, eventType, event, ui, target) { @@ -926,7 +926,7 @@ Prado.JuiCallback = function(UniqueID, eventType, event, ui, target) var request = new Prado.CallbackRequest(UniqueID, callback); request.dispatch(); - return false; + return request; }; /** -- cgit v1.2.3