mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Make sure the this object is avaliable before addressing it.
-Fix error in calender views which was happening after dnd
This commit is contained in:
parent
1df5500d28
commit
23c0285825
@ -407,7 +407,7 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd) {
|
|||||||
egw_topWindow().location.href = res.data.url;
|
egw_topWindow().location.href = res.data.url;
|
||||||
}
|
}
|
||||||
// json request was originating from a different window --> redirect that one
|
// 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;
|
this.DOMContainer.ownerDocument.location.href = res.data.url;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user