Add spinner to student card form

This commit is contained in:
Antoine Bartuccio 2024-12-08 12:31:35 +01:00
parent de7aa6f6a6
commit 29a5425259

View File

@ -1,3 +1,11 @@
import htmx from "htmx.org";
document.body.addEventListener("htmx:beforeRequest", (event) => {
event.target.ariaBusy = true;
});
document.body.addEventListener("htmx:afterRequest", (event) => {
event.originalTarget.ariaBusy = null;
});
Object.assign(window, { htmx });