diff --git a/resources/views/customers/v2/info.blade.php b/resources/views/customers/v2/info.blade.php index f1c51dc..411ba06 100644 --- a/resources/views/customers/v2/info.blade.php +++ b/resources/views/customers/v2/info.blade.php @@ -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);