mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
Add event listener for form submission
This commit is contained in:
parent
93df3a4007
commit
0f3cd7eb3c
@ -4,3 +4,15 @@
|
|||||||
@section('body')
|
@section('body')
|
||||||
@livewire('billing-portal.purchase', ['subscription' => $subscription, 'db' => $subscription->company->db, 'hash' => $hash, 'request_data' => $request_data, 'campaign' => request()->query('campaign') ?? null])
|
@livewire('billing-portal.purchase', ['subscription' => $subscription, 'db' => $subscription->company->db, 'hash' => $hash, 'request_data' => $request_data, 'campaign' => request()->query('campaign') ?? null])
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
|
@push('footer')
|
||||||
|
<script>
|
||||||
|
document.addEventListener('livewire:init', () => {
|
||||||
|
Livewire.on('purchase.submit', () => {
|
||||||
|
setTimeout(() => {
|
||||||
|
document.getElementById('payment-method-form').submit()
|
||||||
|
}, 2000);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
|
Loading…
Reference in New Issue
Block a user