mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
fix tooltip
This commit is contained in:
@@ -93,9 +93,11 @@ $.ui.autocomplete.filter = (array, terms) => {
|
||||
$(document).tooltip({
|
||||
items: "#note-detail a",
|
||||
content: function(callback) {
|
||||
const noteId = link.getNotePathFromLink($(this).attr("href"));
|
||||
const notePath = link.getNotePathFromLink($(this).attr("href"));
|
||||
|
||||
if (notePath !== null) {
|
||||
const noteId = treeUtils.getNoteIdFromNotePath(notePath);
|
||||
|
||||
if (noteId !== null) {
|
||||
noteEditor.loadNote(noteId).then(note => callback(note.detail.note_text));
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user