note tree refactorings

This commit is contained in:
azivner
2018-03-12 23:14:09 -04:00
parent 834661c461
commit e5c0acbb43
3 changed files with 49 additions and 26 deletions

View File

@@ -19,8 +19,9 @@ const editTreePrefix = (function() {
const currentNode = noteTree.getCurrentNode();
noteTreeId = currentNode.data.noteTreeId;
const nt = noteTree.getNoteTree(noteTreeId);
$treePrefixInput.val(currentNode.data.prefix).focus();
$treePrefixInput.val(nt.prefix).focus();
const noteTitle = noteTree.getNoteTitle(currentNode.data.noteId);