Remove unused code
Here lies the remains of the old compose flow, which must eventually be restored for group creation flow, but will likely be rewritten entirely. // FREEBIE
This commit is contained in:
parent
65c13adf5e
commit
7dd0fb70b5
1 changed files with 0 additions and 17 deletions
|
@ -67,12 +67,6 @@
|
|||
model: { appWindow: options.appWindow }
|
||||
});
|
||||
|
||||
this.newConversationView = new Whisper.NewConversationView({
|
||||
appWindow: options.appWindow
|
||||
});
|
||||
this.listenTo(this.newConversationView, 'open',
|
||||
this.openConversation.bind(this, null));
|
||||
|
||||
var inboxCollection = getInboxCollection();
|
||||
this.inboxListView = new Whisper.ConversationListView({
|
||||
el : this.$('.inbox'),
|
||||
|
@ -121,7 +115,6 @@
|
|||
'click': 'closeMenu',
|
||||
'click .hamburger': 'toggleMenu',
|
||||
'click .show-debug-log': 'showDebugLog',
|
||||
'click .show-new-conversation': 'showCompose',
|
||||
'select .gutter .conversation-list-item': 'openConversation',
|
||||
'input input.search': 'filterContacts'
|
||||
},
|
||||
|
@ -138,16 +131,6 @@
|
|||
this.searchView.hideHints();
|
||||
conversation = ConversationController.create(conversation);
|
||||
this.conversation_stack.open(conversation);
|
||||
this.hideCompose();
|
||||
},
|
||||
showCompose: function() {
|
||||
this.newConversationView.reset();
|
||||
this.newConversationView.$el.prependTo(this.conversation_stack.el);
|
||||
this.newConversationView.$input.focus();
|
||||
this.listenToOnce(this.newConversationView, 'back', this.hideCompose);
|
||||
},
|
||||
hideCompose: function() {
|
||||
this.newConversationView.$el.remove();
|
||||
},
|
||||
toggleMenu: function() {
|
||||
this.$('.global-menu .menu-list').toggle();
|
||||
|
|
Loading…
Reference in a new issue