context menu converted to module

This commit is contained in:
azivner
2017-11-04 19:33:39 -04:00
parent 9880a4d6f6
commit ad7803f9dc
2 changed files with 94 additions and 85 deletions

View File

@@ -161,7 +161,7 @@ const noteTree = (function() {
console.log("CTRL-V");
if (event.ctrlKey) { // Ctrl-V
pasteAfter(node);
contextMenu.pasteAfter(node);
return false;
}
break;
@@ -169,7 +169,7 @@ const noteTree = (function() {
console.log("CTRL-X");
if (event.ctrlKey) { // Ctrl-X
cut(node);
contextMenu.cut(node);
return false;
}
break;
@@ -177,7 +177,7 @@ const noteTree = (function() {
}
});
treeEl.contextmenu(contextMenuSetup);
treeEl.contextmenu(contextMenu.contextMenuSettings);
}
function loadTree() {