의 미러
https://github.com/ae-utbm/sith.git
synced 2025-07-11 12:29:24 +00:00
Redirect when cancelling instead of submitting a form
This commit is contained in:
@ -199,11 +199,10 @@
|
||||
];
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
loadCounter({
|
||||
csrfToken: "{{ csrf_token }}",
|
||||
clickApiUrl: "{{ url('counter:click', counter_id=counter.id, user_id=customer.user.id) }}", customerBalance: {{ customer.amount }},
|
||||
products: products,
|
||||
customerId: {{ customer.pk }},
|
||||
formInitial: formInitial,
|
||||
cancelUrl: "{{ cancel_url }}",
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user