merge master

This commit is contained in:
Hadi Nategh
2020-03-05 14:45:25 +01:00
79 changed files with 3527 additions and 411 deletions

View File

@ -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;