mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-18 03:11:40 +01:00
fixed not working telephon integration / url-phone widget
This commit is contained in:
parent
350b8ed3ae
commit
f25bb789e7
@ -162,18 +162,12 @@ var et2_url = et2_textbox.extend(
|
|||||||
}
|
}
|
||||||
else if (this.egw().config("call_link"))
|
else if (this.egw().config("call_link"))
|
||||||
{
|
{
|
||||||
var link = this.egw().config("call_link").replace("%1", value).
|
var link = this.egw().config("call_link")
|
||||||
replace("%u",this.egw().user('account_id')).replace("%t",this.egw().user('account_phone'));
|
.replace("%1", encodeURIComponent(value))
|
||||||
|
.replace("%u",this.egw().user('account_lid'))
|
||||||
if(this.egw().config("call_popup"))
|
.replace("%t",this.egw().user('account_phone'));
|
||||||
{
|
var popup = this.egw().config("call_popup");
|
||||||
var size = this.egw().config("call_popup").split("x");
|
value = function() { egw.open_link(link, 'phonecall', popup); };
|
||||||
value = function() { egw_openWindowCentered(link, false,size[0],size[1]); };
|
|
||||||
}
|
|
||||||
else // no popup
|
|
||||||
{
|
|
||||||
value = function() { window.open(link, false); };
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Can't make a good handler
|
// Can't make a good handler
|
||||||
|
Loading…
Reference in New Issue
Block a user