fix updated latest

This commit is contained in:
hafifierahman
2023-03-12 00:33:23 +08:00
parent 372cf452a6
commit 9b134d5e47
7 changed files with 57 additions and 22 deletions
@@ -403,7 +403,28 @@
"jumlahkeping": "0"
},
success: function (data) {
console.log(data);
if(data == 0){
Swal.fire({
icon: 'error',
title: 'Tidak Berjaya',
text: 'Tidak berjaya mengemaskini denominasi'
}).then((result) => {
if (result.isConfirmed) {
location.reload();
}
});
}else{
Swal.fire({
icon: 'success',
title: 'Berjaya',
text: 'Berjaya mengemaskini denominasi'
}).then((result) => {
if (result.isConfirmed) {
location.reload();
}
});
}
}
});
}