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
afe69c80
Commit
afe69c80
authored
Jun 09, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use asc_setRestriction method for commenting in view mode.
parent
746b2889
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+1
-0
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+1
-1
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+1
-0
No files found.
apps/documenteditor/main/app/controller/Main.js
View file @
afe69c80
...
...
@@ -1014,6 +1014,7 @@ define([
this
.
applyModeEditorElements
();
this
.
api
.
asc_setViewMode
(
!
this
.
appOptions
.
isEdit
&&
!
this
.
appOptions
.
canComments
);
(
!
this
.
appOptions
.
isEdit
&&
this
.
appOptions
.
canComments
)
&&
this
.
api
.
asc_setRestriction
(
Asc
.
c_oAscRestrictionType
.
OnlyComments
);
this
.
api
.
asc_LoadDocument
();
if
(
!
this
.
appOptions
.
isEdit
)
{
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
afe69c80
...
...
@@ -778,7 +778,7 @@ define([
this
.
applyModeEditorElements
();
this
.
api
.
asc_setViewMode
(
!
this
.
appOptions
.
isEdit
&&
!
this
.
appOptions
.
canComments
);
(
!
this
.
appOptions
.
isEdit
&&
this
.
appOptions
.
canComments
)
&&
this
.
api
.
asc_setRestriction
(
Asc
.
c_oAscRestrictionType
.
OnlyComments
);
this
.
api
.
asc_LoadDocument
();
if
(
!
this
.
appOptions
.
isEdit
)
{
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
afe69c80
...
...
@@ -799,6 +799,7 @@ define([
this
.
applyModeEditorElements
();
this
.
api
.
asc_setViewMode
(
!
this
.
appOptions
.
isEdit
&&
!
this
.
appOptions
.
canComments
);
(
!
this
.
appOptions
.
isEdit
&&
this
.
appOptions
.
canComments
)
&&
this
.
api
.
asc_setRestriction
(
Asc
.
c_oAscRestrictionType
.
OnlyComments
);
(
this
.
appOptions
.
isEditMailMerge
||
this
.
appOptions
.
isEditDiagram
)
?
this
.
api
.
asc_LoadEmptyDocument
()
:
this
.
api
.
asc_LoadDocument
();
if
(
!
this
.
appOptions
.
isEdit
)
{
...
...
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