Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
f55ce0d3
Commit
f55ce0d3
authored
Sep 22, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE] Don't restore last version. Don't show changes by default.
parent
2afdb191
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+4
-2
No files found.
apps/documenteditor/main/app/controller/Main.js
View file @
f55ce0d3
...
...
@@ -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
'
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment