diff --git a/static/index.js b/static/index.js index a1009b0..f1e8fe9 100644 --- a/static/index.js +++ b/static/index.js @@ -1,9 +1,13 @@ document.addEventListener('DOMContentLoaded', function() { - const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]'); + initTooltips(document); +}); + +function initTooltips(elementRoot) { + const tooltipTriggerList = elementRoot.querySelectorAll('[data-bs-action="tooltip"]'); tooltipTriggerList.forEach((elem) => { new bootstrap.Tooltip(elem); }); -}); +} function setupClanButtons(dropdownId, delBtnId, editBtnId) { const dropdown = document.getElementById(dropdownId); diff --git a/templates/components/bottom_controls.html b/templates/components/bottom_controls.html index 78d3ebb..04d6f0d 100644 --- a/templates/components/bottom_controls.html +++ b/templates/components/bottom_controls.html @@ -3,12 +3,12 @@