mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
fix attribute name autocomplete, no tooltip preview on path selection
This commit is contained in:
@@ -6,10 +6,16 @@ function setupTooltip() {
|
||||
$(document).tooltip({
|
||||
items: "body a",
|
||||
content: function (callback) {
|
||||
let notePath = linkService.getNotePathFromLink($(this).attr("href"));
|
||||
const $link = $(this);
|
||||
|
||||
if ($link.hasClass("no-tooltip-preview")) {
|
||||
return;
|
||||
}
|
||||
|
||||
let notePath = linkService.getNotePathFromLink($link.attr("href"));
|
||||
|
||||
if (!notePath) {
|
||||
notePath = $(this).attr("data-note-path");
|
||||
notePath = $link.attr("data-note-path");
|
||||
}
|
||||
|
||||
if (notePath) {
|
||||
|
||||
Reference in New Issue
Block a user