forked from extern/egroupware
Open phonecall window target as _self instead of new tab
This commit is contained in:
parent
a23ab6a9fb
commit
b59b44d29d
@ -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
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user