"go to selected note" button now has also note tooltip

This commit is contained in:
azivner
2018-11-14 19:33:48 +01:00
parent 19a07c699c
commit 8a3f508825
3 changed files with 14 additions and 13 deletions

View File

@@ -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) {