[call-me] - fix tooltip
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "call-me",
|
||||
"version": "1.0.45",
|
||||
"version": "1.0.46",
|
||||
"description": "Your Go-To for Instant Video Calls",
|
||||
"author": "Miroslav Pejic - miroslav.pejic.85@gmail.com",
|
||||
"license": "AGPLv3",
|
||||
|
||||
+9
-1
@@ -170,12 +170,20 @@ async function fetchRandomImage() {
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize tooltips
|
||||
// Initialize tooltips and handle hiding them when clicked
|
||||
function handleToolTip() {
|
||||
const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-toggle="tooltip"]'));
|
||||
const tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
|
||||
return new bootstrap.Tooltip(tooltipTriggerEl);
|
||||
});
|
||||
// Add click event listener to hide all tooltips
|
||||
tooltipTriggerList.forEach(function (tooltipTriggerEl) {
|
||||
tooltipTriggerEl.addEventListener('click', function () {
|
||||
tooltipList.forEach(function (tooltip) {
|
||||
tooltip.hide(); // Hide all tooltips
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// Handle localStorage data
|
||||
|
||||
Reference in New Issue
Block a user