mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-12-22 22:21:47 +01:00
Preview prices at page load
This commit is contained in:
parent
a219eeae84
commit
f060df9219
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.attrs = {
|
||||
"hx_post": reverse("purchase:price_preview"),
|
||||
"hx_trigger": "keyup delay:500ms,change delay:500ms",
|
||||
"hx_trigger": "keyup delay:500ms,change delay:500ms,load",
|
||||
"hx_target": "#price_preview",
|
||||
"hx_swap": "innerHTML",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue