fix sweet alert

This commit is contained in:
afiq
2021-02-10 12:44:28 +08:00
parent dc3b466e01
commit e4019f662e
6 changed files with 1130 additions and 1366 deletions
+10 -15
View File
@@ -772,8 +772,8 @@
}, 3000);
}else if (result.dismiss === Swal.DismissReason.cancel){
swalWithBootstrapButtons.fire(
'Cancelled',
'Your imaginary file is safe :)',
'Batal',
'Maklumat Gadaian Tidak Berjaya Disimpan',
'error'
)
}
@@ -873,8 +873,8 @@
}, 3000);
} else if (result.dismiss === Swal.DismissReason.cancel) {
swalWithBootstrapButtons.fire(
'Cancelled',
'Your imaginary file is safe :)',
'Batal',
'Maklumat Gadaian Tidak Berjaya Disimpan',
'error'
)
}
@@ -898,8 +898,7 @@
}
function deletemarhun(e)
{
function deletemarhun(e){
let marhun = $(e).closest('tr').children('td:eq(1)').text();let selectedrow = $(e).closest('tr');let recnozz = tablemarhun.row(selectedrow).data();
let norujuk = $('#norujukan').val();
@@ -911,19 +910,16 @@
"norujukan" : norujuk,
"recno" : recnozz[1]
},
success:function(data)
{
console.log(data);
success:function(data){
location.reload();
},error: function(xhr, status, error) {
var err = eval("(" + xhr.responseText + ")");
alert(xhr.responseText);
var err = eval("(" + xhr.responseText + ")");
alert(xhr.responseText);
}
});
}
function editmarhun(e)
{
function editmarhun(e){
let norujuk = $('#norujukan').val();let selectedrow = $(e).closest('tr');let recno = tablemarhun.row(selectedrow).data();
let nm = recno[3];let karat = recno[4];let berat = recno[5];
let harga = recno[7];
@@ -946,8 +942,7 @@
$('#harga1').val(hargaref);
});
function calculationharga(e)
{
function calculationharga(e){
let berat = $(e).val();
let total = 0;
let harga = $('#harga1').val();