bubble fraicheur des completions ajouté

This commit is contained in:
Tykayn 2025-06-24 13:16:48 +02:00 committed by tykayn
parent cd8369d08c
commit 93086eba60
18 changed files with 179 additions and 66 deletions

View file

@ -1,11 +1,7 @@
// Gestion du tri des tableaux
import Tablesort from 'tablesort';
// import Tablesort from 'tablesort';
document.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('.js-sort-table').forEach(table => {
new Tablesort(table);
});
// Gestion du toggle gouttes/ronds sur la carte
const toggle = document.getElementById('toggleMarkers');
if (toggle && window.updateMarkers) {
@ -18,6 +14,6 @@ document.addEventListener('DOMContentLoaded', () => {
// Exposer une fonction pour (ré)appliquer le tri si besoin
export function applyTableSort() {
document.querySelectorAll('.js-sort-table').forEach(table => {
new Tablesort(table);
new window.Tablesort(table);
});
}