mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
tree converted to module
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
const treeEl = $("#tree");
|
||||
|
||||
function getParentKey(node) {
|
||||
return (node.getParent() === null || node.getParent().key === "root_1") ? "root" : node.getParent().key;
|
||||
}
|
||||
@@ -7,7 +9,7 @@ function getParentEncryption(node) {
|
||||
}
|
||||
|
||||
function getNodeByKey(noteId) {
|
||||
return glob.tree.fancytree('getNodeByKey', noteId);
|
||||
return treeEl.fancytree('getNodeByKey', noteId);
|
||||
}
|
||||
|
||||
function getNoteTitle(noteId) {
|
||||
|
||||
Reference in New Issue
Block a user