mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +01:00
Fix canceled close still destroyed session
This commit is contained in:
parent
f3568fdcd9
commit
e3f139f2af
@ -467,7 +467,7 @@ export class etemplate2
|
|||||||
[this._etemplate_exec_id], null, null, "keepalive").sendRequest();
|
[this._etemplate_exec_id], null, null, "keepalive").sendRequest();
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
window.addEventListener("beforeunload", this.destroy_session);
|
window.addEventListener("unload", this.destroy_session);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -483,6 +483,7 @@ export class etemplate2
|
|||||||
|
|
||||||
// Chrome requires returnValue to be set
|
// Chrome requires returnValue to be set
|
||||||
e.returnValue = '';
|
e.returnValue = '';
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
public skip_close_prompt(skip = true)
|
public skip_close_prompt(skip = true)
|
||||||
|
Loading…
Reference in New Issue
Block a user