feat: improve assessments filters and cleaning
This commit is contained in:
@@ -160,15 +160,8 @@ const Notytex = {
|
||||
const url = new URL(window.location);
|
||||
url.search = params.toString();
|
||||
|
||||
// Navigation sans rechargement complet si possible
|
||||
if (history.pushState) {
|
||||
history.pushState(null, '', url.toString());
|
||||
// Déclenchement d'un événement personnalisé pour les composants qui écoutent
|
||||
window.dispatchEvent(new CustomEvent('filtersChanged', { detail: params }));
|
||||
} else {
|
||||
// Fallback pour les anciens navigateurs
|
||||
window.location.href = url.toString();
|
||||
}
|
||||
// Rechargement de la page avec les nouveaux filtres
|
||||
window.location.href = url.toString();
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user