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