WIP pill view for selected recipients
This commit is contained in:
parent
c84ccfc735
commit
746e6530b9
9 changed files with 366 additions and 172 deletions
|
@ -38,7 +38,7 @@
|
|||
this.$el.addClass('loading');
|
||||
this.conversations.fetchActive({reset: true}).then(function() {
|
||||
this.$el.removeClass('loading');
|
||||
window.conversations = this.conversations;
|
||||
window.conversations = this.conversations; // debug
|
||||
}.bind(this));
|
||||
|
||||
extension.on('message', function() {
|
||||
|
@ -51,20 +51,12 @@
|
|||
'click .back button': 'hideCompose',
|
||||
'click .fab': 'showCompose',
|
||||
'open #contacts': 'openConversation',
|
||||
'open .contacts': 'openConversation',
|
||||
'open .new-group-update-form': 'openConversation',
|
||||
'open .new-contact': 'createConversation',
|
||||
'open .new-conversation .contacts': 'openConversation'
|
||||
},
|
||||
openConversation: function(e, data) {
|
||||
bg.openConversation(data.modelId);
|
||||
this.hideCompose();
|
||||
},
|
||||
createConversation: function(e, data) {
|
||||
this.newConversationView.new_contact.model.save().then(function() {
|
||||
bg.openConversation(data.modelId);
|
||||
});
|
||||
this.hideCompose();
|
||||
},
|
||||
showCompose: function() {
|
||||
this.$fab.hide();
|
||||
this.$contacts.hide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue