mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
Clean up etemplate2 sessions before closing the top level window
This commit is contained in:
parent
6dd9df24e6
commit
32d3aa51f2
@ -285,6 +285,9 @@ var etemplate2 = /** @class */ (function () {
|
||||
this.close_prompt = this._close_changed_prompt.bind(this);
|
||||
window.addEventListener("beforeunload", this.close_prompt);
|
||||
}
|
||||
else if (window == egw_topWindow()) {
|
||||
window.addEventListener("beforeunload", this.destroy_session);
|
||||
}
|
||||
if (this._etemplate_exec_id) {
|
||||
this.destroy_session = jQuery.proxy(function (ev) {
|
||||
// need to use async === "keepalive" to run via beforeunload
|
||||
|
@ -358,6 +358,10 @@ export class etemplate2
|
||||
this.close_prompt = this._close_changed_prompt.bind(this);
|
||||
window.addEventListener("beforeunload", this.close_prompt);
|
||||
}
|
||||
else if (window == egw_topWindow())
|
||||
{
|
||||
window.addEventListener("beforeunload", this.destroy_session);
|
||||
}
|
||||
if (this._etemplate_exec_id)
|
||||
{
|
||||
this.destroy_session = jQuery.proxy(function (ev)
|
||||
|
Loading…
Reference in New Issue
Block a user