Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-05-28 17:43:12 +0300
committerGitHub <noreply@github.com>2019-05-28 17:43:12 +0300
commitbfc71a72af5cb0a5f3c88965566dbee049d807cb (patch)
treee0c741530bc8565aaaef3767ee4fd5f9bd0acac4
parent74e0871c00009cb433fb7b34d760cbe70d5223e9 (diff)
parent1468abdbe542891ff316a8b24e1c471b48b564e8 (diff)
Implement new Views_List message (#521)v3.3.7
Implement new Views_List message
-rw-r--r--js/documents.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/js/documents.js b/js/documents.js
index 00c12085..9e8c416c 100644
--- a/js/documents.js
+++ b/js/documents.js
@@ -778,12 +778,19 @@ var documentsMain = {
documentsMain.$deferredVersionRestoreAck.resolve();
}
} else if (msgId === 'View_Added') {
+ if (deprecated)
+ return;
+
documentsMain.UI.views[args.ViewId] = args;
documentsMain.UI.renderAvatars();
} else if (msgId === 'View_Removed') {
+ if (deprecated)
+ return;
+
delete documentsMain.UI.views[args.ViewId];
documentsMain.UI.renderAvatars();
- } else if (msgId === 'Get_Views_Resp') {
+ } else if (msgId === 'Get_Views_Resp' || msgId === 'Views_List') {
+ documentsMain.UI.views = {};
args.forEach(function(view) {
documentsMain.UI.views[view.ViewId] = view;
});