skeleton implementation of new "book" note type

This commit is contained in:
zadam
2019-10-01 21:11:11 +02:00
parent 0ef6634d41
commit 8ec01c73cd
10 changed files with 116 additions and 45 deletions

View File

@@ -21,13 +21,15 @@ async function createNoteLink(notePath, noteTitle = null) {
noteTitle = await treeUtils.getNoteTitle(noteId);
}
const noteLink = $("<a>", {
const $noteLink = $("<a>", {
href: 'javascript:',
text: noteTitle
}).attr('data-action', 'note')
.attr('data-note-path', notePath);
return noteLink;
$noteLink.addClass("no-tooltip-preview");
return $noteLink;
}
async function createNoteLinkWithPath(notePath, noteTitle = null) {