T1805: Pass WOPI session termination to other users editor windows
This commit is contained in:
parent
0d32dc639b
commit
1de768e6ea
1 changed files with 6 additions and 2 deletions
|
@ -3565,8 +3565,12 @@ function kolab_files_ui()
|
|||
if (!this.response(response))
|
||||
return;
|
||||
|
||||
if (rcmail.task == 'files' && rcmail.env.action == 'edit')
|
||||
window.close();
|
||||
if (rcmail.task == 'files' && rcmail.env.action == 'edit') {
|
||||
if (document_editor && document_editor.terminate)
|
||||
document_editor.terminate();
|
||||
// use timeout to have a chance to properly propagate termination request
|
||||
setTimeout(function() { window.close(); }, 500);
|
||||
}
|
||||
|
||||
// @todo: force sessions info update
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue