Let list view changes the color of selected conversations

This commit is contained in:
lilia 2014-07-22 21:06:13 -10:00
parent dc957415c2
commit d615a5a18b

View file

@ -10,13 +10,13 @@ var Whisper = Whisper || {};
collection: Whisper.Threads,
events: {
'select .conversation': 'select',
'click .conversation': 'select',
},
select: function(e) {
var target = $(e.target).closest('.conversation');
target.siblings().addClass('closed');
target.addClass('selected').trigger('open');
target.removeClass('closed').addClass('selected');
return false;
},
});