mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Use window from egw object, if available - still not quite right
This commit is contained in:
parent
699d215246
commit
19aef757f6
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user