[DE][SSE] Use commenting display option when show/hide panels in the left menu.

This commit is contained in:
Julia Radzhabova 2017-06-20 12:54:01 +03:00
parent 9f34062d32
commit d3663f11db
2 changed files with 12 additions and 0 deletions

View file

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

View file

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