diff --git a/src/public/javascripts/services/link.js b/src/public/javascripts/services/link.js index 27d54aa95..985c7974e 100644 --- a/src/public/javascripts/services/link.js +++ b/src/public/javascripts/services/link.js @@ -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; } diff --git a/src/public/javascripts/services/note_detail_book.js b/src/public/javascripts/services/note_detail_book.js index b4fd6a672..23285508a 100644 --- a/src/public/javascripts/services/note_detail_book.js +++ b/src/public/javascripts/services/note_detail_book.js @@ -17,7 +17,7 @@ class NoteDetailBook { for (const childNote of await this.ctx.note.getChildNotes()) { this.$component.append( $('
') - .append($('
').append(await linkService.createNoteLink(childNote.noteId))) + .append($('
').append(await linkService.createNoteLink(childNote.noteId, null, false))) .append($('
').append(await this.getNoteContent(childNote))) ); }