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 }
|
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();
|
var inboxCollection = getInboxCollection();
|
||||||
this.inboxListView = new Whisper.ConversationListView({
|
this.inboxListView = new Whisper.ConversationListView({
|
||||||
el : this.$('.inbox'),
|
el : this.$('.inbox'),
|
||||||
|
@ -121,7 +115,6 @@
|
||||||
'click': 'closeMenu',
|
'click': 'closeMenu',
|
||||||
'click .hamburger': 'toggleMenu',
|
'click .hamburger': 'toggleMenu',
|
||||||
'click .show-debug-log': 'showDebugLog',
|
'click .show-debug-log': 'showDebugLog',
|
||||||
'click .show-new-conversation': 'showCompose',
|
|
||||||
'select .gutter .conversation-list-item': 'openConversation',
|
'select .gutter .conversation-list-item': 'openConversation',
|
||||||
'input input.search': 'filterContacts'
|
'input input.search': 'filterContacts'
|
||||||
},
|
},
|
||||||
|
@ -138,16 +131,6 @@
|
||||||
this.searchView.hideHints();
|
this.searchView.hideHints();
|
||||||
conversation = ConversationController.create(conversation);
|
conversation = ConversationController.create(conversation);
|
||||||
this.conversation_stack.open(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() {
|
toggleMenu: function() {
|
||||||
this.$('.global-menu .menu-list').toggle();
|
this.$('.global-menu .menu-list').toggle();
|
||||||
|
|
Loading…
Reference in a new issue