Redirect when cancelling instead of submitting a form

This commit is contained in:
2024-12-20 20:21:36 +01:00
부모 5f0b4d2050
커밋 ffe6fc8c2a
3개의 변경된 파일4개의 추가작업 그리고 9개의 파일을 삭제

파일 보기

@ -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>