Open context menu inside of chats on sidebar item
This commit is contained in:
parent
a392b9f35f
commit
d16b18de78
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user