Enable request api/komuditi/batal when hapus gadai

This commit is contained in:
amirhassan
2024-01-22 12:14:23 +08:00
parent 6f4a4b9da6
commit eca3f49fa1
+17 -17
View File
@@ -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);