* Api: Fix bug where some links opened in the application's main tab instead of popups

Now keeping addressbook & projectmanager opening in main tab
This commit is contained in:
nathangray 2019-10-17 15:05:55 -06:00
parent 00d995b4b5
commit 87501bb2a9

View File

@ -308,7 +308,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd)
if (_popup && _popup.indexOf('x') > 0)
{
var w_h = _popup.split('x');
var popup_window = this.openPopup(url, w_h[0], w_h[1], _target || '_blank', _target_app, true);
var popup_window = this.openPopup(url, w_h[0], w_h[1], _target && _target != _target_app ? _target : '_blank', _target_app, true);
// Remember which windows are open
egw().storeWindow(_target_app, popup_window);