Don't reopen a currently selected conversation

pull/749/head
lilia 11 years ago
parent 9b30780335
commit bbb5d56516

@ -15,8 +15,10 @@ var Whisper = Whisper || {};
select: function(e) {
var target = $(e.target).closest('.conversation');
target.siblings().addClass('closed');
target.removeClass('closed').addClass('selected');
if (target.hasClass('closed')) {
target.siblings().addClass('closed');
target.removeClass('closed').addClass('selected');
}
return false;
},
});

Loading…
Cancel
Save