From f25bb789e70a1305fa814b134704444e817591b5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 18 Jan 2014 09:29:32 +0000 Subject: [PATCH] fixed not working telephon integration / url-phone widget --- etemplate/js/et2_widget_url.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/etemplate/js/et2_widget_url.js b/etemplate/js/et2_widget_url.js index a0d218adad..c0081ff187 100644 --- a/etemplate/js/et2_widget_url.js +++ b/etemplate/js/et2_widget_url.js @@ -162,18 +162,12 @@ var et2_url = et2_textbox.extend( } else if (this.egw().config("call_link")) { - var link = this.egw().config("call_link").replace("%1", value). - replace("%u",this.egw().user('account_id')).replace("%t",this.egw().user('account_phone')); - - if(this.egw().config("call_popup")) - { - var size = this.egw().config("call_popup").split("x"); - value = function() { egw_openWindowCentered(link, false,size[0],size[1]); }; - } - else // no popup - { - value = function() { window.open(link, false); }; - } + var link = this.egw().config("call_link") + .replace("%1", encodeURIComponent(value)) + .replace("%u",this.egw().user('account_lid')) + .replace("%t",this.egw().user('account_phone')); + var popup = this.egw().config("call_popup"); + value = function() { egw.open_link(link, 'phonecall', popup); }; } else { // Can't make a good handler