Fix menu behavior
Opening the global menu should close the conversation menu and vice versa. // FREEBIE
This commit is contained in:
@@ -96,7 +96,8 @@
|
|||||||
'loadMore .message-list': 'fetchMessages',
|
'loadMore .message-list': 'fetchMessages',
|
||||||
'focus .send-message': 'focusBottomBar',
|
'focus .send-message': 'focusBottomBar',
|
||||||
'blur .send-message': 'unfocusBottomBar',
|
'blur .send-message': 'unfocusBottomBar',
|
||||||
'click .back': 'resetPanel'
|
'click .back': 'resetPanel',
|
||||||
|
'close .menu': 'closeMenu'
|
||||||
},
|
},
|
||||||
|
|
||||||
unfocusBottomBar: function() {
|
unfocusBottomBar: function() {
|
||||||
|
@@ -125,6 +125,7 @@
|
|||||||
focusHeader: function() {
|
focusHeader: function() {
|
||||||
this.$('.conversation-stack').addClass('inactive');
|
this.$('.conversation-stack').addClass('inactive');
|
||||||
this.$('#header').removeClass('inactive');
|
this.$('#header').removeClass('inactive');
|
||||||
|
this.$('.conversation:first .menu').trigger('close');
|
||||||
},
|
},
|
||||||
reloadBackgroundPage: function() {
|
reloadBackgroundPage: function() {
|
||||||
chrome.runtime.reload();
|
chrome.runtime.reload();
|
||||||
|
Reference in New Issue
Block a user