From eca3f49fa16cf46c661afa2e544c84ac7d5d2795 Mon Sep 17 00:00:00 2001 From: amirhassan Date: Mon, 22 Jan 2024 12:14:23 +0800 Subject: [PATCH] Enable request api/komuditi/batal when hapus gadai --- resources/views/customers/v2/info.blade.php | 34 ++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) 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);