Polish group update ux

* Show the members list as static elements
* Style the search results as a drop down, mirroring android ux

Fixes #248 // FREEBIE
This commit is contained in:
lilia 2015-06-09 16:10:39 -07:00
parent 23db5802cf
commit 72f16b94ff
4 changed files with 59 additions and 33 deletions

View file

@ -32,11 +32,27 @@
placeholder: "Add member"
});
this.$('.scrollable').append(this.recipients_view.el);
this.$('.avatar').addClass('default');
this.member_list_view = new Whisper.ConversationListView({
collection: this.model.contactCollection,
className: 'members'
});
this.member_list_view.render();
this.$('.scrollable').append(this.member_list_view.el);
},
events: {
'click .back': 'goBack',
'click .send': 'send'
'click .send': 'send',
'keyup input.search': 'toggleResults'
},
toggleResults: function() {
if (this.recipients_view.$input.val().length >= 2) {
this.$('.results').show();
} else {
this.$('.results').hide();
}
},
goBack: function() {
this.trigger('back');