checkbox filters from config

This commit is contained in:
Tykayn 2025-04-27 21:24:25 +02:00 committed by tykayn
parent c1a76c9701
commit b44fa95a09
3 changed files with 39 additions and 0 deletions

View file

@ -905,6 +905,16 @@ $(document).ready(function () {
refreshDisplay();
});
showActiveFilter(display_unknown_max_power_station, '#filterUnkown');
$('#shareUrl').on('click', copyCurrentUrl);
// Écouteurs pour les nouveaux filtres
Object.keys(lcm_config.filterConfigs).forEach(filterId => {
$(`#${filterId}`).on('change', function() {
lcm_config[lcm_config.filterConfigs[filterId]] = this.checked;
refreshDisplay();
});
});
});
function showActiveFilter(filterVariableName, selectorId) {