fix tooltips

This commit is contained in:
zadam 2019-10-01 21:41:20 +02:00
parent 8ec01c73cd
commit 35e825b376
2 changed files with 5 additions and 3 deletions

View file

@ -14,7 +14,7 @@ function getNotePathFromUrl(url) {
}
}
async function createNoteLink(notePath, noteTitle = null) {
async function createNoteLink(notePath, noteTitle = null, tooltip = true) {
if (!noteTitle) {
const noteId = treeUtils.getNoteIdFromNotePath(notePath);
@ -27,7 +27,9 @@ async function createNoteLink(notePath, noteTitle = null) {
}).attr('data-action', 'note')
.attr('data-note-path', notePath);
$noteLink.addClass("no-tooltip-preview");
if (!tooltip) {
$noteLink.addClass("no-tooltip-preview");
}
return $noteLink;
}

View file

@ -17,7 +17,7 @@ class NoteDetailBook {
for (const childNote of await this.ctx.note.getChildNotes()) {
this.$component.append(
$('<div class="note-book">')
.append($('<h5 class="note-book-title">').append(await linkService.createNoteLink(childNote.noteId)))
.append($('<h5 class="note-book-title">').append(await linkService.createNoteLink(childNote.noteId, null, false)))
.append($('<div class="note-book-content">').append(await this.getNoteContent(childNote)))
);
}