From d94fc6b4922ad78e85514b78b5df31d8ab1cd966 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Sat, 11 Jan 2014 11:41:05 +0000 Subject: [PATCH] Fix not called callback --- phpgwapi/js/jsapi/egw_json.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/phpgwapi/js/jsapi/egw_json.js b/phpgwapi/js/jsapi/egw_json.js index cb28def223..dcdf43e87a 100644 --- a/phpgwapi/js/jsapi/egw_json.js +++ b/phpgwapi/js/jsapi/egw_json.js @@ -149,6 +149,13 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd) { res.type, res, this ); + // Call request callback, if provided + // Data is special, don't do the callback for it + if(this.callback != null && res.type != "data") + { + this.callback.call(this.context,res); + } + } catch(e) { var msg = e.message ? e.message : e + ''; var stack = e.stack ? "\n-- Stack trace --\n" + e.stack : ""