Update besar apk finance
This commit is contained in:
@@ -120,34 +120,5 @@ $(function(){
|
||||
},'json');
|
||||
});
|
||||
|
||||
// DELETE
|
||||
$(document).on('click','.btn-delete',function(){
|
||||
|
||||
let id = $(this).data('id');
|
||||
|
||||
Swal.fire({
|
||||
title:'Hapus gudang?',
|
||||
text:'Pastikan tidak dipakai item',
|
||||
icon:'warning',
|
||||
showCancelButton:true
|
||||
}).then(r=>{
|
||||
if(r.isConfirmed){
|
||||
|
||||
$.get("<?= base_url('warehouses/delete/'); ?>"+id,function(res){
|
||||
|
||||
if(res.status){
|
||||
table.ajax.reload(null,false);
|
||||
Swal.fire('Sukses',res.message,'success');
|
||||
} else {
|
||||
Swal.fire('Error',res.message,'error');
|
||||
}
|
||||
|
||||
},'json');
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user