Open phonecall window target as _self instead of new tab

This commit is contained in:
Hadi Nategh 2016-10-27 11:07:44 +02:00
parent a23ab6a9fb
commit b59b44d29d
2 changed files with 9 additions and 8 deletions

View File

@ -171,7 +171,7 @@ var et2_url = (function(){ "use strict"; return et2_textbox.extend(
.replace("%u",this.egw().user('account_lid')) .replace("%u",this.egw().user('account_lid'))
.replace("%t",this.egw().user('account_phone')); .replace("%t",this.egw().user('account_phone'));
var popup = this.egw().config("call_popup"); var popup = this.egw().config("call_popup");
value = function() { egw.open_link(link, 'phonecall', popup); }; value = function() { egw.open_link(link, '_phonecall', popup); };
} }
else { else {
// Can't make a good handler // Can't make a good handler

View File

@ -379,6 +379,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd)
{ {
_target = egwIsMobile()?'_self':'_blank'; _target = egwIsMobile()?'_self':'_blank';
} }
_target = _target == '_phonecall'? '_self':_target;
return _wnd.open(url, _target); return _wnd.open(url, _target);
} }
}, },