mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-16 03:34:48 +02:00
fix redirects in a popup and new egw_exception_redirect to be used in hooks/callbacks like for addressbook.edit to redirect to a different location
r49022: resize import popup to regular compose size
This commit is contained in:
@ -406,6 +406,12 @@ 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)
|
||||
{
|
||||
this.DOMContainer.ownerDocument.location.href = res.data.url;
|
||||
}
|
||||
// main window, open url in respective tab
|
||||
else
|
||||
{
|
||||
egw_appWindowOpen(res.data.app, res.data.url);
|
||||
|
Reference in New Issue
Block a user