This commit is contained in:
afiq
2021-03-03 12:49:10 +08:00
parent 77e7c20d82
commit d2db35854e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -237,13 +237,13 @@
success:function(data){
console.log(data);
if(data == 'true'){
event.preventDefault();
return false;
Swal.fire({
icon: 'error',
title: 'Amaran',
text: 'Gadaian Sudah Scan'
});
event.preventDefault();
return false;
}else if(data == 'false'){
$(func).attr("onSubmit","return true;");
$(func).submit();
+2 -2
View File
@@ -211,13 +211,13 @@ var table_gadaian_semasa = $('#table-gadaian-semasa').DataTable({
success:function(data){
console.log(data);
if(data == 'true'){
event.preventDefault();
return false;
Swal.fire({
icon: 'error',
title: 'Amaran',
text: 'Penebusan Sudah Scan'
});
event.preventDefault();
return false;
}else if(data == 'false'){
$(func).attr("onSubmit","return true;");
$(func).submit();