Add bulk selection functionality for filter options in admin templates

This commit is contained in:
2026-04-10 17:13:09 +02:00
parent b636d06908
commit a96e103733
5 changed files with 175 additions and 0 deletions
+8
View File
@@ -1114,9 +1114,17 @@
while (select.children.length > 1) {
select.removeChild(select.lastChild);
}
const allOption = document.createElement('option');
allOption.value = '__ALL__';
allOption.textContent = '-- Alle auswählen --';
select.appendChild(allOption);
// Add new options - data.values contains the array
data.values.forEach(value => {
if (!value || String(value).trim() === '') {
return;
}
const option = document.createElement('option');
option.value = value;
option.textContent = value;