for egw.json calls in a popup we need to use jQuery object of that window, as otherwise eg. apply from server with app.$app.method to run in main window instead of popup

This commit is contained in:
Ralf Becker 2013-10-18 16:14:36 +00:00
parent d63cf889b4
commit 998d568ef4

View File

@ -87,7 +87,9 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd) {
}; };
// Send the request via AJAX using the jquery ajax function // Send the request via AJAX using the jquery ajax function
$j.ajax({ // we need to use jQuery of window of egw object, as otherwise the one from main window is used!
// (causing eg. apply from server with app.$app.method to run in main window instead of popup)
this.egw.window.$j.ajax({
url: this.url, url: this.url,
async: this.async, async: this.async,
context: this, context: this,