mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
Create landing page to select a school dashboard [179826663]
This commit is contained in:
parent
31a9f3f0a4
commit
28f32d072f
1791 changed files with 243 additions and 48306 deletions
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue