Fix menu behavior

Opening the global menu should close the conversation menu and vice
versa.

// FREEBIE
This commit is contained in:
lilia 2016-03-22 11:01:36 -07:00
parent 2e7c7ce0cc
commit 08da29969c
2 changed files with 3 additions and 1 deletions

View file

@ -96,7 +96,8 @@
'loadMore .message-list': 'fetchMessages',
'focus .send-message': 'focusBottomBar',
'blur .send-message': 'unfocusBottomBar',
'click .back': 'resetPanel'
'click .back': 'resetPanel',
'close .menu': 'closeMenu'
},
unfocusBottomBar: function() {

View file

@ -125,6 +125,7 @@
focusHeader: function() {
this.$('.conversation-stack').addClass('inactive');
this.$('#header').removeClass('inactive');
this.$('.conversation:first .menu').trigger('close');
},
reloadBackgroundPage: function() {
chrome.runtime.reload();