From e945580cea9c018bcb21b7eddc8715de23864dd7 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 21 Oct 2014 09:00:27 +0000 Subject: [PATCH] Make sure the this object is avaliable before addressing it. -Fix error in calender views which was happening after dnd --- 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 aceae865fc..6292e72c37 100644 --- a/phpgwapi/js/jsapi/egw_json.js +++ b/phpgwapi/js/jsapi/egw_json.js @@ -407,7 +407,7 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd) { egw_topWindow().location.href = res.data.url; } // json request was originating from a different window --> redirect that one - else if(this.DOMContainer && this.DOMContainer.ownerDocument.defaultView != window) + else if(this && this.DOMContainer && this.DOMContainer.ownerDocument.defaultView != window) { this.DOMContainer.ownerDocument.location.href = res.data.url; }