mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix tooltips
This commit is contained in:
parent
8ec01c73cd
commit
35e825b376
@ -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;
|
||||
}
|
||||
|
@ -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)))
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user