[DE][SSE] Use commenting display option when show/hide panels in the left menu.
This commit is contained in:
parent
9f34062d32
commit
d3663f11db
|
@ -136,6 +136,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 **/
|
||||
|
||||
|
@ -174,6 +175,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.btnAbout.toggle(false);
|
||||
|
|
|
@ -126,6 +126,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 **/
|
||||
|
||||
|
@ -163,6 +164,11 @@ define([
|
|||
Common.NotificationCenter.trigger('layout:changed', 'leftmenu');
|
||||
},
|
||||
|
||||
onBtnCommentsToggle: function(btn, state) {
|
||||
if (!state)
|
||||
this.fireEvent('comments:hide', this);
|
||||
},
|
||||
|
||||
onBtnMenuClick: function(btn, e) {
|
||||
this.btnAbout.toggle(false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue