dav_registration: fixed filter buttons ("all" button not active)
All checks were successful
Run tests / Execute tox to run the test suite (push) Successful in 3m12s

This commit is contained in:
2024-09-10 15:02:33 +02:00
parent faf71976bd
commit a43c15422c

View File

@@ -132,12 +132,6 @@
var filter_cleaned = [];
var filter_expr;
if(filter.length > 0) {
$("#btn-filter-All").addClass("btn-white");
} else {
$("#btn-filter-All").removeClass("btn-white");
}
for(let i in choices) {
if(filter.indexOf(choices[i]) >= 0) {
filter_cleaned.push(choices[i]);
@@ -148,8 +142,10 @@
}
if(filter_cleaned.length > 0) {
$("#btn-filter-All").addClass("btn-white");
filter_expr = "(" + filter_cleaned.join("|") + "),";
} else {
$("#btn-filter-All").removeClass("btn-white");
filter_expr = "";
}