tree utils as a module

This commit is contained in:
azivner
2017-11-04 22:18:36 -04:00
parent 900f169dab
commit 30df3cba1c
10 changed files with 82 additions and 65 deletions

View File

@@ -78,7 +78,7 @@ const noteEditor = (function() {
const title = noteTitleEl.val();
getNodeByKey(note.detail.note_id).setTitle(title);
treeUtils.getNodeByKey(note.detail.note_id).setTitle(title);
note.detail.note_title = title;
}
@@ -155,7 +155,7 @@ const noteEditor = (function() {
}
function setTreeBasedOnEncryption(note) {
const node = getNodeByKey(note.detail.note_id);
const node = treeUtils.getNodeByKey(note.detail.note_id);
node.toggleClass("encrypted", note.detail.encryption > 0);
}