T1805: Pass WOPI session termination to other users editor windows

This commit is contained in:
Aleksander Machniak 2016-11-14 11:09:03 +01:00
parent 0d32dc639b
commit 1de768e6ea

View file

@ -3565,8 +3565,12 @@ function kolab_files_ui()
if (!this.response(response)) if (!this.response(response))
return; return;
if (rcmail.task == 'files' && rcmail.env.action == 'edit') if (rcmail.task == 'files' && rcmail.env.action == 'edit') {
window.close(); 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 // @todo: force sessions info update