show notes in a book including their prefix, closes #695

This commit is contained in:
zadam
2019-11-09 15:31:47 +01:00
parent d58e98e361
commit c2ebd4b308
3 changed files with 29 additions and 3 deletions

View File

@@ -16,9 +16,9 @@ function getNotePathFromUrl(url) {
async function createNoteLink(notePath, noteTitle = null, tooltip = true) {
if (!noteTitle) {
const noteId = treeUtils.getNoteIdFromNotePath(notePath);
const {noteId, parentNoteId} = treeUtils.getNoteIdAndParentIdFromNotePath(notePath);
noteTitle = await treeUtils.getNoteTitle(noteId);
noteTitle = await treeUtils.getNoteTitle(noteId, parentNoteId);
}
const $noteLink = $("<a>", {