Open context menu inside of chats on sidebar item

This commit is contained in:
Pavel Djundik 2017-12-26 20:40:02 +02:00
parent a392b9f35f
commit d16b18de78

View file

@ -174,7 +174,7 @@ $(function() {
}); });
viewport.on("click", "#chat .menu", function(e) { viewport.on("click", "#chat .menu", function(e) {
e.currentTarget = $(e.currentTarget).closest(".chan")[0]; e.currentTarget = $(`#sidebar .chan[data-id="${$(this).closest(".chan").data("id")}"]`)[0];
return showContextMenu(this, e); return showContextMenu(this, e);
}); });