From a2df9a69dcc14cb70118cda2ded499055e7ee358 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 21 Aug 2022 17:31:56 +0200 Subject: m. update --- app/tooltip.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/tooltip.js (limited to 'app/tooltip.js') diff --git a/app/tooltip.js b/app/tooltip.js new file mode 100644 index 0000000..fd7e321 --- /dev/null +++ b/app/tooltip.js @@ -0,0 +1,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(); \ No newline at end of file -- cgit