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
fa12b891
Commit
fa12b891
authored
Jun 20, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE][SSE] Use commenting display option when show/hide panels in the left menu.
parent
bc69ffe6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
apps/documenteditor/main/app/view/LeftMenu.js
apps/documenteditor/main/app/view/LeftMenu.js
+6
-0
apps/spreadsheeteditor/main/app/view/LeftMenu.js
apps/spreadsheeteditor/main/app/view/LeftMenu.js
+6
-0
No files found.
apps/documenteditor/main/app/view/LeftMenu.js
View file @
fa12b891
...
...
@@ -145,6 +145,7 @@ define([
this
.
btnChat
.
hide
();
this
.
btnComments
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnMenuClick
,
this
));
this
.
btnComments
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onBtnCommentsToggle
,
this
));
this
.
btnChat
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnMenuClick
,
this
));
/** coauthoring end **/
...
...
@@ -185,6 +186,11 @@ define([
Common
.
NotificationCenter
.
trigger
(
'
layout:changed
'
,
'
leftmenu
'
);
},
onBtnCommentsToggle
:
function
(
btn
,
state
)
{
if
(
!
state
)
this
.
fireEvent
(
'
comments:hide
'
,
this
);
},
onBtnMenuClick
:
function
(
btn
,
e
)
{
this
.
supressEvents
=
true
;
this
.
btnFile
.
toggle
(
false
);
...
...
apps/spreadsheeteditor/main/app/view/LeftMenu.js
View file @
fa12b891
...
...
@@ -135,6 +135,7 @@ define([
this
.
btnChat
.
hide
();
this
.
btnComments
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnMenuClick
,
this
));
this
.
btnComments
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onBtnCommentsToggle
,
this
));
this
.
btnChat
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnMenuClick
,
this
));
/** coauthoring end **/
...
...
@@ -177,6 +178,11 @@ define([
Common
.
NotificationCenter
.
trigger
(
'
layout:changed
'
,
'
leftmenu
'
);
},
onBtnCommentsToggle
:
function
(
btn
,
state
)
{
if
(
!
state
)
this
.
fireEvent
(
'
comments:hide
'
,
this
);
},
onBtnMenuClick
:
function
(
btn
,
e
)
{
this
.
btnFile
.
toggle
(
false
);
this
.
btnAbout
.
toggle
(
false
);
...
...
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