mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Etemplate: Avoid session destruction from PBX integration
This commit is contained in:
parent
857943720e
commit
dd015a62a8
@ -155,7 +155,22 @@ var et2_url = /** @class */ (function (_super_1) {
|
||||
.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); };
|
||||
value = function (ev) {
|
||||
if (popup && popup !== '_self') {
|
||||
egw.open_link(link, '_phonecall', popup);
|
||||
}
|
||||
else {
|
||||
// No popup, use AJAX. We don't care about the response.
|
||||
(egw.window ? egw.window.jQuery : jQuery).ajax({
|
||||
url: link,
|
||||
async: true,
|
||||
dataType: 'json',
|
||||
type: "GET"
|
||||
});
|
||||
ev.preventDefault();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}
|
||||
else {
|
||||
// Can't make a good handler
|
||||
|
@ -198,7 +198,24 @@ class et2_url extends et2_textbox
|
||||
.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); };
|
||||
value = function(ev : Event) {
|
||||
if (popup && popup !== '_self')
|
||||
{
|
||||
egw.open_link(link, '_phonecall', popup);
|
||||
}
|
||||
else
|
||||
{
|
||||
// No popup, use AJAX. We don't care about the response.
|
||||
(egw.window?egw.window.jQuery:jQuery).ajax({
|
||||
url: link,
|
||||
async: true,
|
||||
dataType: 'json',
|
||||
type: "GET"
|
||||
});
|
||||
ev.preventDefault();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}
|
||||
else {
|
||||
// Can't make a good handler
|
||||
|
Loading…
Reference in New Issue
Block a user