fix panjar
This commit is contained in:
@@ -186,11 +186,38 @@
|
||||
confirmButtonText: 'Teruskan!'
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
Swal.fire(
|
||||
'Deleted!',
|
||||
'Your file has been deleted.',
|
||||
'success'
|
||||
)
|
||||
|
||||
$.ajax({
|
||||
method: 'post',
|
||||
url: '{{ route("khazanah.deletepanjar") }}',
|
||||
data: {
|
||||
"_token": "{{ csrf_token() }}",
|
||||
'recno' : rec_no
|
||||
},
|
||||
success:function(data){
|
||||
|
||||
if(data === 'berjaya')
|
||||
{
|
||||
Swal.fire(
|
||||
'Deleted!',
|
||||
'Your file has been deleted.',
|
||||
'success'
|
||||
)
|
||||
}else{
|
||||
Swal.fire(
|
||||
'Tidak Berjaya!',
|
||||
'Data tidak berjaya dihapuskan.',
|
||||
'error'
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user