add latest fix denominasi

This commit is contained in:
hafifierahman
2023-03-12 01:01:21 +08:00
parent 9b134d5e47
commit 1974255fa9
4 changed files with 63 additions and 33 deletions
+22 -9
View File
@@ -2333,15 +2333,28 @@
success: function(success){
$('#btnsave').css('display','none');
$('#btnotp').show();
Swal.fire({
icon: 'success',
title: 'Berjaya',
text: 'Berjaya mengemaskini maklumat pelanggan'
}).then((result) => {
if (result.isConfirmed) {
location.reload();
}
});
if(success == 1){
Swal.fire({
icon: 'success',
title: 'Berjaya',
text: 'Berjaya mengemaskini maklumat pelanggan',
allowEscapeKey : false,
allowOutsideClick: false,
}).then((result) => {
if (result.isConfirmed) {
location.reload();
}
});
}else{
Swal.fire({
icon: 'error',
title: 'Tidak Berjaya',
text: 'Tidak berjaya mengemaskini maklumat pelanggan',
allowEscapeKey : false,
allowOutsideClick: false,
});
}
},
error: function (request, status, error) {
alert(request.responseText);