Create landing page to select a school dashboard [179826663]

This commit is contained in:
Alex Basson 2021-10-19 12:05:30 -04:00 committed by Chad Serrant
parent 31a9f3f0a4
commit 28f32d072f
1791 changed files with 243 additions and 48306 deletions

View file

@ -1,18 +1,16 @@
export function initializeListenersForNavDropdowns() {
document.addEventListener("turbolinks:load", function () {
const schoolDropdown = document.querySelector("#select-school");
if (schoolDropdown) {
document
.querySelector("#select-school")
.addEventListener("change", (event) => {
window.location = event.target.value;
});
const schoolDropdown = document.querySelector("#select-school");
if (schoolDropdown) {
document
.querySelector("#select-school")
.addEventListener("change", (event) => {
window.location = event.target.value;
});
document
.querySelector("#select-district")
.addEventListener("change", (event) => {
window.location = event.target.value;
});
}
});
document
.querySelector("#select-district")
.addEventListener("change", (event) => {
window.location = event.target.value;
});
}
}