This commit is contained in:
bronku 2026-11-08 20:32:49 +01:00
parent 6963a88602
commit e7570a4c20
11 changed files with 138 additions and 5 deletions

View file

@ -30,4 +30,11 @@ function decrease(id) {
calculate_total()
}
document.body.addEventListener('htmx:beforeSwap', e => {
if (e.detail.xhr.status >= 400) {
e.detail.shouldSwap = true;
e.detail.isError = false;
}
});
calculate_total()