Use window from egw object, if available - still not quite right

This commit is contained in:
Nathan Gray 2013-03-25 16:58:33 +00:00
parent 699d215246
commit 19aef757f6

View File

@ -269,12 +269,12 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd) {
try try
{ {
var func = new Function(res.data); var func = new Function(res.data);
func.call(window); func.call(req.egw ? req.egw.window : window);
} }
catch (e) catch (e)
{ {
req.egw.debug('error', 'Error while executing script: ', req.egw.debug('error', 'Error while executing script: ',
res.data) res.data,e)
} }
return true; return true;
} }