execute non-http(s) links eg. tel: like before

This commit is contained in:
Ralf Becker 2020-10-07 13:16:28 +02:00
parent 18cbde732d
commit 9b0e2f8207
2 changed files with 3 additions and 2 deletions

View File

@ -156,7 +156,8 @@ var et2_url = /** @class */ (function (_super_1) {
.replace("%t", this.egw().user('account_phone'));
var popup = this.egw().config("call_popup");
value = function (ev) {
if (popup && popup !== '_self') {
if (popup && popup !== '_self' && !link.match(/^https?:/)) // execute non-http(s) links eg. tel: like before
{
egw.open_link(link, '_phonecall', popup);
}
else {

View File

@ -199,7 +199,7 @@ class et2_url extends et2_textbox
.replace("%t",this.egw().user('account_phone'));
var popup = this.egw().config("call_popup");
value = function(ev : Event) {
if (popup && popup !== '_self')
if (popup && popup !== '_self' && !link.match(/^https?:/)) // execute non-http(s) links eg. tel: like before
{
egw.open_link(link, '_phonecall', popup);
}