mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-25 01:28:02 +01:00
Debounce update
This commit is contained in:
parent
f8e7647af1
commit
2d952e1a63
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class BasketForm(forms.ModelForm):
|
||||||
self.helper.add_input(Submit("submit", _("Save")))
|
self.helper.add_input(Submit("submit", _("Save")))
|
||||||
self.helper.attrs = {
|
self.helper.attrs = {
|
||||||
"hx_post": reverse("purchase:price_preview"),
|
"hx_post": reverse("purchase:price_preview"),
|
||||||
"hx_trigger": "keyup,change",
|
"hx_trigger": "keyup delay:500ms,change delay:500ms",
|
||||||
"hx_target": "#price_preview",
|
"hx_target": "#price_preview",
|
||||||
"hx_swap": "innerHTML",
|
"hx_swap": "innerHTML",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue