summaryrefslogtreecommitdiff
path: root/app/tooltip.js
blob: fd7e32163f69767fb4dfbf47e625d226a5eebe05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function refreshTooltips() {
    let tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
    let tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
        return new bootstrap.Tooltip(tooltipTriggerEl)
    });

    Array.from(document.querySelectorAll('[data-bs-toggle="tooltip"]')).forEach((item) => {
        if (!item.classList.contains("tooltip-nohelp")) {
            item.style.cursor = "help";
        }
    })
}

refreshTooltips();