update module rekening
This commit is contained in:
parent
5f5d6d87ed
commit
29824ae21d
@ -33,6 +33,7 @@
|
||||
protected $listeners = [
|
||||
'delete' => 'delete',
|
||||
'update' => 'update',
|
||||
'reload' => 'reload',
|
||||
];
|
||||
|
||||
public function render()
|
||||
@ -177,6 +178,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
public function reload()
|
||||
{
|
||||
$this->edit_mode = false;
|
||||
$this->reset();
|
||||
}
|
||||
|
||||
public function hydrate()
|
||||
{
|
||||
$this->resetErrorBag();
|
||||
|
@ -88,16 +88,17 @@
|
||||
confirmButton: 'btn btn-primary',
|
||||
}
|
||||
})
|
||||
|
||||
$('#kt_modal_add_rekening').modal('hide');
|
||||
LaravelDataTables['rekening-table'].ajax.reload();
|
||||
});
|
||||
});
|
||||
|
||||
$(function(){
|
||||
$('#kt_modal_add_rekening').on('hidden.bs.modal', function () {
|
||||
$(this).find('form').trigger('reset');
|
||||
})
|
||||
});
|
||||
$('#kt_modal_add_rekening').on('hidden.bs.modal', function () {
|
||||
$(this).find('form').trigger('reset');
|
||||
Livewire.dispatch('reload', false);
|
||||
})
|
||||
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user