Bug fixes for group create flow

Fallout from layout change.

// FREEBIE
This commit is contained in:
lilia 2015-08-26 17:11:01 -07:00
parent 39d13d5e45
commit 992dfa5b20
5 changed files with 12 additions and 21 deletions

View file

@ -125,7 +125,8 @@
type: 'group',
name: name,
avatar: avatarFile,
members: members
members: members,
active_at: Date.now()
};
var group = new Whisper.Conversation(attributes);
group.save().then(function() {
@ -160,6 +161,7 @@
reset: function() {
this.delegateEvents();
this.avatarInput.delegateEvents();
this.$create.hide();
this.$('.new-group-update-form .name').val('');
this.$group_update.hide();

View file

@ -159,6 +159,9 @@
},
reset: function() {
this.delegateEvents();
this.typeahead_view.delegateEvents();
this.recipients_view.delegateEvents();
this.typeahead.add(
this.recipients.filter(function(model) {
return !model.get('newContact');