Commit fa12b891 authored by Julia Radzhabova's avatar Julia Radzhabova

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

parent bc69ffe6
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment