signal-desktop/js/views/conversation_list_view.js
lilia fd3a72d435 Destroy all globals
Well, not *all* globals..
2014-11-24 19:25:03 -08:00

21 lines
432 B
JavaScript

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