This commit is contained in:
afiq
2021-02-15 09:08:19 +08:00
parent 9cd75ac010
commit 6a2b78c72c
16 changed files with 118 additions and 115 deletions
+12 -13
View File
@@ -680,11 +680,11 @@
});
swalWithBootstrapButtons.fire({
title: 'Dapatkan Pengesahan Daripada Khazanah?',
text: "Ubah Rekod Pelanggan!",
title: 'Dapatkan Pengesahan Khazanah',
text: "Ubah Maklumat Gadaian",
icon: 'info',
showCancelButton: true,
confirmButtonText: 'Setuju!',
confirmButtonText: 'Hantar',
cancelButtonText: 'Batal',
reverseButtons: true
}).then((result) => {
@@ -739,7 +739,7 @@
clearInterval(timerInterval);
Swal.fire({
icon: 'success',
title: 'Anda Berjaya Menerima Pengesahan'
title: 'Telah Disahkan'
}).then(function(){
var urlroute = '{{ route("gadaian.edit", ":id") }}';
@@ -760,8 +760,8 @@
}, 3000);
}else if (result.dismiss === Swal.DismissReason.cancel){
swalWithBootstrapButtons.fire(
'Cancelled',
'Your imaginary file is safe :)',
'Batal',
'Tidak Berjaya Mendaptkan Pengesahan Khazanah',
'error'
)
}
@@ -825,11 +825,11 @@
});
swalWithBootstrapButtons.fire({
title: 'Dapatkan Pengesahan Daripada Khazanah?',
title: 'Dapatkan Pengesahan Khazanah',
text: "Hapus Rekod!",
icon: 'info',
showCancelButton: true,
confirmButtonText: 'Setuju!',
confirmButtonText: 'Hantar',
cancelButtonText: 'Batal',
reverseButtons: true
}).then((result) => {
@@ -889,7 +889,7 @@
clearInterval(timerInterval);
Swal.fire({
icon: 'success',
title: 'Anda Berjaya Menerima Pengesahan'
title: 'Telah Disahkan'
}).then(function(){
if($("input[name='options']:checked").val() == 'belum_tebus'){
$.ajax({
@@ -906,7 +906,7 @@
success:function(batalkomuditi){
swalWithBootstrapButtons.fire(
'Hapus!',
'Data pelanggan telah dihapuskan.',
'Maklumat gadaian telah dihapuskan.',
'success'
).then(function(){
location.reload();
@@ -927,7 +927,7 @@
if(data != "Bukan-Tebus"){
swalWithBootstrapButtons.fire(
'Hapus!',
'Data pelanggan telah dihapuskan.',
'Maklumat gadaian telah dihapuskan.',
'success'
).then(function () {
location.reload();
@@ -1073,7 +1073,7 @@
Swal.fire({
icon: 'success',
title: 'Berjaya',
text: 'Anda telah berjaya mengemaskini maklumat pelanggan'
text: 'Berjaya mengemaskini maklumat pelanggan'
})
},
error: function (request, status, error) {
@@ -1167,7 +1167,6 @@
}
},
error: function(xhRequest, ErrorText, thrownError){
// alert('Gadai Tidak Berjaya');
console.log(xhRequest);
}
});