polish
This commit is contained in:
parent
6963a88602
commit
e7570a4c20
11 changed files with 138 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue