Change left pane header color
// FREEBIE
This commit is contained in:
parent
85fa71b940
commit
8bb8ed8151
5 changed files with 39 additions and 6 deletions
|
@ -105,6 +105,8 @@
|
|||
},
|
||||
events: {
|
||||
'click': 'closeMenu',
|
||||
'click #header': 'focusHeader',
|
||||
'click .conversation': 'focusConversation',
|
||||
'click .global-menu .hamburger': 'toggleMenu',
|
||||
'click .show-debug-log': 'showDebugLog',
|
||||
'click .settings': 'showSettings',
|
||||
|
@ -112,6 +114,18 @@
|
|||
'input input.search': 'filterContacts',
|
||||
'click .restart-signal': 'reloadBackgroundPage'
|
||||
},
|
||||
focusConversation: function(e) {
|
||||
if (e && this.$(e.target).hasClass('placeholder')) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.$('#header').removeClass('active');
|
||||
this.$('.conversation-stack').removeClass('inactive');
|
||||
},
|
||||
focusHeader: function() {
|
||||
this.$('.conversation-stack').addClass('inactive');
|
||||
this.$('#header').addClass('active');
|
||||
},
|
||||
reloadBackgroundPage: function() {
|
||||
chrome.runtime.reload();
|
||||
},
|
||||
|
@ -133,6 +147,7 @@
|
|||
this.searchView.hideHints();
|
||||
conversation = ConversationController.create(conversation);
|
||||
this.conversation_stack.open(conversation);
|
||||
this.focusConversation();
|
||||
},
|
||||
toggleMenu: function() {
|
||||
this.$('.global-menu .menu-list').toggle();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue