mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +00:00
Add spinner to student card form
This commit is contained in:
parent
de7aa6f6a6
commit
29a5425259
@ -1,3 +1,11 @@
|
|||||||
import htmx from "htmx.org";
|
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 });
|
Object.assign(window, { htmx });
|
||||||
|
Loading…
Reference in New Issue
Block a user