mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
"go to selected note" button now has also note tooltip
This commit is contained in:
@@ -7,7 +7,7 @@ function setupTooltip() {
|
||||
$(document).on("mouseenter", "a", async function() {
|
||||
const $link = $(this);
|
||||
|
||||
if ($link.hasClass("no-tooltip-preview")) {
|
||||
if ($link.hasClass("no-tooltip-preview") || $link.hasClass("disabled")) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ function setupTooltip() {
|
||||
});
|
||||
|
||||
// close any tooltip after click, this fixes the problem that sometimes tooltips remained on the screen
|
||||
$(document).on("click", () => $('[rel=tooltip]').tooltip("hide"));
|
||||
$(document).on("click", () => $('.tooltip').remove());
|
||||
}
|
||||
|
||||
async function renderTooltip(note, attributes) {
|
||||
|
||||
Reference in New Issue
Block a user