jump to note now has full list of notes

This commit is contained in:
azivner
2017-11-17 22:37:11 -05:00
parent 7b2c79b754
commit eb20e1f31f
3 changed files with 12 additions and 26 deletions

View File

@@ -37,7 +37,7 @@ const treeUtils = (function() {
}
function getFullName(noteId) {
let note = treeUtils.getNodeByKey(noteId);
let note = noteTree.getByNoteId(noteId);
if (note === null) {
return "[unknown]";
@@ -46,14 +46,11 @@ const treeUtils = (function() {
const path = [];
while (note) {
path.push(note.title);
path.push(note.note_title);
note = note.getParent();
note = noteTree.getByNoteId(note.note_pid);
}
// remove "root" element
path.pop();
return path.reverse().join(" > ");
}