diff --git a/_data/assetPaths.json b/_data/assetPaths.json index cd73ba1..034e770 100644 --- a/_data/assetPaths.json +++ b/_data/assetPaths.json @@ -3,6 +3,6 @@ "admin.map": "/assets/js/admin-C7YAUYZM.js.map", "app.js": "/assets/js/app-DBWFVBND.js", "app.map": "/assets/js/app-DBWFVBND.js.map", - "index.css": "/assets/styles/index-TY2KJRCJ.css", - "index.map": "/assets/styles/index-TY2KJRCJ.css.map" + "index.css": "/assets/styles/index-UHUJ6A2J.css", + "index.map": "/assets/styles/index-UHUJ6A2J.css.map" } \ No newline at end of file diff --git a/_includes/filterpanel.html b/_includes/filterpanel.html index a91ca37..03eb42b 100644 --- a/_includes/filterpanel.html +++ b/_includes/filterpanel.html @@ -47,6 +47,9 @@

Resource Level

value="national" data-section-id="national-mutual-aid-section" checked /> +
+ +
@@ -80,18 +83,17 @@

Resource Level

return newUrl; } - // Attach event listener directly to state dropdown - const stateSelect = document.getElementById('state'); - if (stateSelect) { - stateSelect.addEventListener('change', function () { - var selectedState = this.value; - if (/^[A-Za-z]{2}$/.test(selectedState)) { - window.location.href = buildStateUrl(selectedState); - } else { - console.error('Invalid state selected'); - } - }); - } + //Attach event listener directly to state dropdown after submit + document.getElementById('stateForm').addEventListener('submit', function(event) { + event.preventDefault(); + var selectedState = document.getElementById('state').value; + if (/^[A-Za-z]{2}$/.test(selectedState)) { + var encodedState = encodeURIComponent(selectedState); + window.location.href = buildStateUrl(encodedState); + } else { + console.error('Invalid state selected'); + } + }); // Event listener for checkboxes document.querySelectorAll('.filter-checkbox').forEach(function (checkbox) { diff --git a/_includes/footer.html b/_includes/footer.html index 020faf8..d801e08 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,5 +1,5 @@