mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 16:46:22 +00:00
7cca88b4f3
closes #15880 closes #15881 closes #15883 closes #15884 closes #15893 closes #15894 closes #15973 closes #15974 closes #15975 closes #16003 closes #16004
7 lines
261 B
JavaScript
7 lines
261 B
JavaScript
// Cancela las peticiones pendientes de htmx para todos los elementos al
|
|
// cambiar de página.
|
|
document.addEventListener("turbolinks:click", () => {
|
|
for (const hx of document.querySelectorAll("[hx-get]")) {
|
|
window.htmx.trigger(hx, "htmx:abort");
|
|
}
|
|
});
|