Refactor back button style

Make it easier to reuse these styles.
This commit is contained in:
lilia 2015-02-23 12:50:07 -08:00
parent d0392a3e04
commit 368cd2f79a
6 changed files with 50 additions and 59 deletions

View file

@ -24,7 +24,7 @@
this.$gutter = $('#gutter');
this.$contacts = $('#contacts');
this.$fab = this.$el.find('.fab');
this.$back = this.$el.find('.back');
this.$back = this.$el.find('.new-conversation-title');
this.newConversationView = new Whisper.NewConversationView();
this.newConversationView.$el.hide().appendTo(this.$gutter);
@ -40,7 +40,7 @@
},
events: {
'keyup': 'keyup',
'click .back button': 'hideCompose',
'click .back': 'hideCompose',
'click .fab': 'showCompose',
'select #contacts .contact': 'openConversation',
'open .new-conversation': 'openConversation'