You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
511 B
JavaScript
21 lines
511 B
JavaScript
/*
|
|
* vim: ts=4:sw=4:expandtab
|
|
*/
|
|
(function () {
|
|
'use strict';
|
|
window.Whisper = window.Whisper || {};
|
|
|
|
Whisper.ConversationListView = Whisper.ListView.extend({
|
|
tagName: 'div',
|
|
itemView: Whisper.ConversationListItemView,
|
|
events: {
|
|
'click .contact': 'select',
|
|
},
|
|
select: function(e) {
|
|
var target = $(e.target).closest('.contact');
|
|
target.siblings().removeClass('selected');
|
|
return false;
|
|
}
|
|
});
|
|
})();
|