Fix context menu opening wrong thing

This commit is contained in:
Pavel Djundik 2018-07-09 19:46:34 +03:00 committed by Pavel Djundik
parent aea779cfdf
commit eff6dcb514

View File

@ -74,7 +74,7 @@ window.vueMounted = () => {
});
viewport.on("click", "#chat .menu", function(e) {
e.currentTarget = $(`#sidebar .chan[data-id="${$(this).closest(".chan").data("id")}"]`)[0];
e.currentTarget = $(`#sidebar .chan[data-id="${$(this).closest(".chan").attr("data-id")}"]`)[0];
return contextMenuFactory.createContextMenu($(this), e).show();
});