When applying (call a function) call it on the request window, not current - they may be different

This commit is contained in:
Nathan Gray 2013-09-11 15:52:49 +00:00
parent d6b2155dc2
commit b4007621f7

View File

@ -313,7 +313,7 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd) {
{
var parts = res.data.func.split('.');
var func = parts.pop();
var parent = window;
var parent = req.egw.window;
for(var i=0; i < parts.length && typeof parent[parts[i]] != 'undefined'; ++i)
{
parent = parent[parts[i]];