mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-16 11:38:02 +02:00
merge master
This commit is contained in:
@ -266,8 +266,8 @@ var etemplate2 = /** @class */ (function () {
|
||||
etemplate2.prototype.bind_unload = function () {
|
||||
if (this._etemplate_exec_id) {
|
||||
this.destroy_session = jQuery.proxy(function (ev) {
|
||||
var request = egw.json("EGroupware\\Api\\Etemplate::ajax_destroy_session", [this._etemplate_exec_id], null, null, false);
|
||||
request.sendRequest();
|
||||
// need to use async === "keepalive" to run via beforeunload
|
||||
egw.json("EGroupware\\Api\\Etemplate::ajax_destroy_session", [this._etemplate_exec_id], null, null, "keepalive").sendRequest();
|
||||
}, this);
|
||||
if (!window.onbeforeunload) {
|
||||
window.onbeforeunload = this.destroy_session;
|
||||
|
Reference in New Issue
Block a user