From f55ce0d3757d89555824dc886035fdbc04b4c77d Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 22 Sep 2016 14:57:41 +0300 Subject: [PATCH] [DE] Don't restore last version. Don't show changes by default. --- apps/documenteditor/main/app/controller/Main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 7ccc2dd4b..c83dece4a 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -400,7 +400,8 @@ define([ docId: version.key, markedAsVersion: (group!==version.versionGroup), selected: (opts.data.currentVersion == version.version), - canRestore: this.appOptions.canHistoryRestore + canRestore: this.appOptions.canHistoryRestore && (ver < versions.length-1), + isExpanded: false })); if (opts.data.currentVersion == version.version) { currentVersion = arrVersions[arrVersions.length-1]; @@ -447,7 +448,8 @@ define([ docIdPrev: docIdPrev, selected: false, canRestore: this.appOptions.canHistoryRestore, - isRevision: false + isRevision: false, + isVisible: false })); arrColors.push(user.get('colorval')); }