From 55030eb5f24e32506e3a5962316dd97305227732 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 27 May 2016 15:03:46 +0200 Subject: [PATCH] Do not a tag if no call_link is set and not in mobile, empty a tag may conflict with some browser telephony addons (eg. telify in FF) --- api/js/etemplate/et2_widget_url.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/js/etemplate/et2_widget_url.js b/api/js/etemplate/et2_widget_url.js index 68c4afcad6..7497a0b2d1 100644 --- a/api/js/etemplate/et2_widget_url.js +++ b/api/js/etemplate/et2_widget_url.js @@ -258,6 +258,12 @@ var et2_url_ro = (function(){ "use strict"; return et2_valueWidget.extend([et2_I this.value = ""; this.span = $j(document.createElement("a")) .addClass("et2_textbox readonly"); + // Do not a tag if no call_link is set and not in mobile, empty a tag may conflict + // with some browser telephony addons (eg. telify in FF) + if (!egw.config('call_link') && this._type == 'url-phone' && !egwIsMobile()){ + this.span = jQuery(document.createElement("span")) + .addClass("et2_textbox readonly"); + } if(this._type == 'url-email') { this.span.addClass('et2_email');