context menu cleanup

This commit is contained in:
azivner
2018-11-06 12:50:48 +01:00
parent 24dfe0fa98
commit 0348bbe4f1
4 changed files with 2 additions and 8 deletions

View File

@@ -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;