mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Clean up etemplate2 sessions before closing the top level window
This commit is contained in:
parent
534e1b5d72
commit
a00fdb9eb2
@ -453,6 +453,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