Tweak contact style in typeahead
Remove message snippets and dates. Add checkboxes.
This commit is contained in:
parent
7bcceacf69
commit
c6a19afd29
5 changed files with 30 additions and 1 deletions
|
@ -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, {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue