Skip to content

Commit

Permalink
Remove tooltips on hover.
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniekung committed May 16, 2024
1 parent c14e43f commit 52ad3cc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugins/arDominionB5Plugin/js/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ import Tooltip from "bootstrap/js/dist/tooltip";
$("body.edit.show-edit-tooltips [id$=-help]").each((_, el) => {
$(el)
.prevAll(":not([type=hidden]):first")
.attr({ "data-bs-toggle": "tooltip", title: el.textContent.trim() })
.attr({ "data-bs-placement": "left" });
.attr({ "data-bs-toggle": "tooltip", title: el.textContent.trim() });
});

$("[data-bs-toggle=tooltip]").each((_, el) => new Tooltip(el));
$("[data-bs-toggle=tooltip]").each((_, el) => {
new Tooltip(el, {
trigger: "focus",
});
});
});
})(jQuery);

0 comments on commit 52ad3cc

Please sign in to comment.