mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07:00
Rename 'Dashboard' to overview in page text and also modify 'dashboard' routes to be 'overview'. Finishes #180076071
This commit is contained in:
parent
2753888f11
commit
f553c3c11c
19 changed files with 34 additions and 34 deletions
26
app/javascript/overview.js
Normal file
26
app/javascript/overview.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import { Popover } from "bootstrap";
|
||||
|
||||
export function initializeListenersForNavDropdowns() {
|
||||
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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export function initializePopovers() {
|
||||
document
|
||||
.querySelectorAll('[data-bs-toggle="popover"]')
|
||||
.forEach(popoverElement => {
|
||||
new Popover(popoverElement, { trigger: 'hover focus' })
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue