Don't reopen a currently selected conversation
This commit is contained in:
parent
9b30780335
commit
bbb5d56516
1 changed files with 4 additions and 2 deletions
|
@ -15,8 +15,10 @@ var Whisper = Whisper || {};
|
|||
|
||||
select: function(e) {
|
||||
var target = $(e.target).closest('.conversation');
|
||||
if (target.hasClass('closed')) {
|
||||
target.siblings().addClass('closed');
|
||||
target.removeClass('closed').addClass('selected');
|
||||
}
|
||||
return false;
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue