fix sweet alert
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user