fix dependabot alerts by upgrading puma and nokogiri

This commit is contained in:
rebuilt 2021-10-16 12:54:31 +02:00
parent cff51bc9f6
commit bb6f6306c4
5 changed files with 54 additions and 41 deletions

View file

@ -1,14 +1,18 @@
export function initializeListenersForNavDropdowns(){
document.addEventListener("turbolinks:load", function() {
const schoolDropdown = document.querySelector('#select-school');
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;
});
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;
});
}
});
}