mirror of
https://github.com/zadam/trilium.git
synced 2025-12-22 16:20:08 +01:00
tree converted to module
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const noteEditor = (function() {
|
||||
const treeEl = $("#tree");
|
||||
const noteTitleEl = $("#note-title");
|
||||
const noteDetailEl = $('#note-detail');
|
||||
const encryptButton = $("#encrypt-button");
|
||||
@@ -101,7 +102,7 @@ const noteEditor = (function() {
|
||||
currentNoteLoadTime = null;
|
||||
|
||||
function createNewTopLevelNote() {
|
||||
let rootNode = glob.tree.fancytree("getRootNode");
|
||||
let rootNode = treeEl.fancytree("getRootNode");
|
||||
|
||||
createNote(rootNode, "root", "into");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user