[DE] Don't restore last version. Don't show changes by default.

This commit is contained in:
Julia Radzhabova 2016-09-22 14:57:41 +03:00
parent 2afdb191df
commit f55ce0d375

View file

@ -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'));
}