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 9b0e2f8207
commit 9ab01ed7e7
2 changed files with 3 additions and 3 deletions

View File

@ -156,7 +156,7 @@ 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' && !link.match(/^https?:/)) // execute non-http(s) links eg. tel: like before
if (popup && popup !== '_self' || !link.match(/^https?:/)) // execute non-http(s) links eg. tel: like before
{
egw.open_link(link, '_phonecall', popup);
}
@ -465,4 +465,4 @@ var et2_url_ro = /** @class */ (function (_super_1) {
return et2_url_ro;
}(et2_core_valueWidget_1.et2_valueWidget));
et2_core_widget_1.et2_register_widget(et2_url_ro, ["url_ro", "url-email_ro", "url-phone_ro"]);
//# sourceMappingURL=et2_widget_url.js.map
//# sourceMappingURL=et2_widget_url.js.map

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' && !link.match(/^https?:/)) // execute non-http(s) links eg. tel: like before
if (popup && popup !== '_self' || !link.match(/^https?:/)) // execute non-http(s) links eg. tel: like before
{
egw.open_link(link, '_phonecall', popup);
}