Enable request api/komuditi/batal when hapus gadai
This commit is contained in:
@@ -2307,23 +2307,23 @@
|
||||
location.reload();
|
||||
});
|
||||
|
||||
// $.ajax({
|
||||
// method:'put',
|
||||
// url: api_url + '/api/komuditi/batal',
|
||||
// dataType:'json',
|
||||
// data:{
|
||||
// norujukan: hapusid
|
||||
// },
|
||||
// success:function(batalkomuditi){
|
||||
// swalWithBootstrapButtons.fire(
|
||||
// 'Hapus!',
|
||||
// 'Maklumat gadaian telah dihapuskan.',
|
||||
// 'success'
|
||||
// ).then(function(){
|
||||
// location.reload();
|
||||
// });
|
||||
// }
|
||||
// })
|
||||
$.ajax({
|
||||
method:'put',
|
||||
url: api_url + '/api/komuditi/batal',
|
||||
dataType:'json',
|
||||
data:{
|
||||
norujukan: hapusid
|
||||
},
|
||||
success:function(batalkomuditi){
|
||||
swalWithBootstrapButtons.fire(
|
||||
'Hapus!',
|
||||
'Maklumat gadaian telah dihapuskan.',
|
||||
'success'
|
||||
).then(function(){
|
||||
location.reload();
|
||||
});
|
||||
}
|
||||
})
|
||||
},error: function(xhr, status, error) {
|
||||
var err = eval("(" + xhr.responseText + ")");
|
||||
alert(xhr.responseText);
|
||||
|
||||
Reference in New Issue
Block a user