summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/source
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2013-11-28 13:29:43 +0100
committerFabio Bas <ctrlaltca@gmail.com>2013-11-28 13:29:43 +0100
commitc8b44fd5ef83ea11513bf135ab864040ad891db6 (patch)
tree0499b58d47dd4e20128740cae93010ac37a9ee2a /framework/Web/Javascripts/source
parenta4e4839d9f09d27b6f0cba92fad0231632b3a04d (diff)
readded the ability to get a simple result from an ajax callback
Diffstat (limited to 'framework/Web/Javascripts/source')
-rw-r--r--framework/Web/Javascripts/source/prado/activecontrols/ajax3.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js
index 8839c1ae..0d306a89 100644
--- a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js
+++ b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js
@@ -315,7 +315,13 @@ Prado.CallbackRequest = jQuery.klass(Prado.PostBack,
this.data = data;
if (this.options.onSuccess)
- this.options.onSuccess(this,textStatus);
+ {
+ var customData=this.extractContent(Prado.CallbackRequestManager.DATA_HEADER);
+ if (typeof(customData) == "string" && customData.length > 0)
+ customData = jQuery.parseJSON(customData);
+
+ this.options.onSuccess(this,customData);
+ }
var redirectUrl = this.extractContent(Prado.CallbackRequestManager.REDIRECT_HEADER);
if (redirectUrl)