From b4007621f7ca7a0491a20d51c8f708de3995265c Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 11 Sep 2013 15:52:49 +0000 Subject: [PATCH] When applying (call a function) call it on the request window, not current - they may be different --- phpgwapi/js/jsapi/egw_json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw_json.js b/phpgwapi/js/jsapi/egw_json.js index 0364eb1ac8..925c721cdf 100644 --- a/phpgwapi/js/jsapi/egw_json.js +++ b/phpgwapi/js/jsapi/egw_json.js @@ -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]];