Fix intermittent issue with missing window breaking ajax

This commit is contained in:
Nathan Gray 2013-10-18 21:01:53 +00:00
parent 998d568ef4
commit f6526a30e8

View File

@ -89,7 +89,7 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd) {
// Send the request via AJAX using the jquery ajax function
// 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({
(this.egw.window?this.egw.window.$j:$j).ajax({
url: this.url,
async: this.async,
context: this,