mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix some window/scope issues with jquery & plain assign handlers to make sure they operate on the window, not the request context (which can be anything)
This commit is contained in:
parent
388b2cbceb
commit
4d29125c41
@ -262,7 +262,7 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd) {
|
||||
(typeof res.data.key != 'undefined') &&
|
||||
(typeof res.data.value != 'undefined'))
|
||||
{
|
||||
var obj = document.getElementById(res.data.id);
|
||||
var obj = _wnd.document.getElementById(res.data.id);
|
||||
if (obj)
|
||||
{
|
||||
obj[res.data.key] = res.data.value;
|
||||
@ -359,7 +359,7 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd) {
|
||||
return true;
|
||||
}
|
||||
throw 'Invalid parameters';
|
||||
}, null, 'jquery');
|
||||
}, _wnd, 'jquery');
|
||||
|
||||
// Register the "redirect" plugin
|
||||
json.registerJSONPlugin(function(type, res, req) {
|
||||
|
Loading…
Reference in New Issue
Block a user