Let list view changes the color of selected conversations
This commit is contained in:
parent
dc957415c2
commit
d615a5a18b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue