mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Keep the default behavior for opening tel-url and make call_popup felixable to be able to get target
This commit is contained in:
parent
b59b44d29d
commit
84207e9a5a
@ -352,7 +352,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd)
|
||||
if (mime_info.mime_target) _target = mime_info.mime_target;
|
||||
}
|
||||
|
||||
if (_popup)
|
||||
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);
|
||||
@ -379,7 +379,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd)
|
||||
{
|
||||
_target = egwIsMobile()?'_self':'_blank';
|
||||
}
|
||||
_target = _target == '_phonecall'? '_self':_target;
|
||||
_target = _target == '_phonecall' && _popup && _popup.indexOf('x') < 0 ? _popup:_target;
|
||||
return _wnd.open(url, _target);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user