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;
}