mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fix wrong context causing eg. attachments to mail to no longer work
This commit is contained in:
parent
1fdec427d9
commit
d2626085f6
@ -478,5 +478,5 @@ var exports = {};
|
||||
*/
|
||||
function et2_call(_func)
|
||||
{
|
||||
return egw.applyFunc(_func, [].slice.call(arguments, 1));
|
||||
return egw.applyFunc(_func, [].slice.call(arguments, 1), window);
|
||||
}
|
||||
|
@ -503,7 +503,7 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
*/
|
||||
applyFunc: function(_func, args, _context)
|
||||
{
|
||||
let parent = _context || window;
|
||||
let parent = _context || _wnd;
|
||||
let func = _func;
|
||||
|
||||
if (typeof _func === 'string')
|
||||
@ -524,7 +524,7 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
{
|
||||
self.includeJS('/'+parts[1]+'/js/app.js', function ()
|
||||
{
|
||||
resolve(self.applyFunc(_func, args));
|
||||
resolve(self.applyFunc(_func, args, _context));
|
||||
}, self, self.webserverUrl);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user