Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a03612dc9c | |||
| b525f37862 |
@@ -7,6 +7,7 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="select-filters">
|
||||
<div class="widget-select places">
|
||||
<label for="location-filter" class="visually-hidden">Orte:</label>
|
||||
<select id="location-filter">
|
||||
@@ -26,6 +27,7 @@
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p id="eventfilter-status" class="visually-hidden" aria-live="polite"></p>
|
||||
</div>
|
||||
@@ -95,6 +97,8 @@
|
||||
const tagButtons = Array.from(filters.querySelectorAll('button[data-filter-tag]'));
|
||||
const locationSelect = filters.querySelector('#location-filter');
|
||||
const orgSelect = filters.querySelector('#org-filter');
|
||||
const locationWidget = locationSelect?.closest('.widget-select');
|
||||
const orgWidget = orgSelect?.closest('.widget-select');
|
||||
const status = filters.querySelector('#eventfilter-status');
|
||||
|
||||
const animationMs = 220;
|
||||
@@ -140,10 +144,12 @@
|
||||
|
||||
if (locationSelect) {
|
||||
locationSelect.classList.toggle('active', type === 'location');
|
||||
locationWidget?.classList.toggle('active', type === 'location');
|
||||
}
|
||||
|
||||
if (orgSelect) {
|
||||
orgSelect.classList.toggle('active', type === 'org');
|
||||
orgWidget?.classList.toggle('active', type === 'org');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user