Cable-Desktop/js/views/conversation_list_view.js
2014-10-22 17:26:37 -07:00

22 lines
465 B
JavaScript

var Whisper = Whisper || {};
(function () {
'use strict';
Whisper.ConversationListView = Whisper.ListView.extend({
tagName: 'div',
id: 'contacts',
itemView: Whisper.ConversationListItemView,
collection: Whisper.Threads,
events: {
'click .contact': 'select',
},
select: function(e) {
var target = $(e.target).closest('.contact');
target.siblings().removeClass('selected');
return false;
},
});
})();