mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
context menu cleanup
This commit is contained in:
parent
24dfe0fa98
commit
0348bbe4f1
@ -141,7 +141,8 @@ async function getContextMenuItems(event) {
|
||||
}
|
||||
|
||||
function selectContextMenuItem(event, cmd) {
|
||||
const node = $.ui.fancytree.getNode(event);
|
||||
// context menu is always triggered on current node
|
||||
const node = treeService.getCurrentNode();
|
||||
|
||||
if (cmd === "insertNoteHere") {
|
||||
const parentNoteId = node.data.parentNoteId;
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -802,8 +802,6 @@
|
||||
<script src="/libraries/jquery.hotkeys.js"></script>
|
||||
<script src="/libraries/jquery.fancytree.hotkeys.js"></script>
|
||||
|
||||
<script src="/libraries/jquery.ui-contextmenu.min.js"></script>
|
||||
|
||||
<script src="/libraries/knockout.min.js"></script>
|
||||
|
||||
<link href="/stylesheets/style.css" rel="stylesheet">
|
||||
|
Loading…
x
Reference in New Issue
Block a user