Fix not called callback

This commit is contained in:
Nathan Gray 2014-01-11 11:41:05 +00:00
parent 31987e9704
commit d94fc6b492

View File

@ -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 : ""