Tweak contact style in typeahead

Remove message snippets and dates.
Add checkboxes.
This commit is contained in:
lilia 2015-01-25 00:19:28 -10:00
parent 7bcceacf69
commit c6a19afd29
5 changed files with 30 additions and 1 deletions

View file

@ -27,6 +27,7 @@ var Whisper = Whisper || {};
events: {
'click': 'open',
'click .checkbox': 'stopPropagation'
},
initialize: function() {
this.template = $('#contact').html();
@ -42,6 +43,10 @@ var Whisper = Whisper || {};
bg.openConversation(this.model.id);
},
stopPropagation: function(e) {
e.stopPropagation();
},
render: function() {
this.$el.html(
Mustache.render(this.template, {

View file

@ -36,7 +36,8 @@
this.typeahead_collection = new typeahead();
this.typeahead_view = new Whisper.ConversationListView({
collection : new Whisper.ConversationCollection()
collection : new Whisper.ConversationCollection(),
className: 'typeahead'
});
this.typeahead_view.$el.hide().insertAfter(this.contacts);
this.typeahead_collection.fetch();