From 952e5f50dde4eaed7d648ed8b203c86d1e20027e Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Thu, 11 Feb 2021 14:52:25 +0800 Subject: [PATCH] fix things --- resources/views/customers/info.blade.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/views/customers/info.blade.php b/resources/views/customers/info.blade.php index 5ebbfe0..6ce99cd 100644 --- a/resources/views/customers/info.blade.php +++ b/resources/views/customers/info.blade.php @@ -806,14 +806,14 @@ let test = $('input[name="sudahtebus"]:checked').closest('tr').children('td:eq(2)').text(); let tarikhgadai1 = new Date(test);tarikhgadai1.setHours(0, 0, 0, 0); - // if(+harini !== +tarikhgadai1){ - // Swal.fire({ - // icon: 'error', - // title: 'Amaran', - // text: 'Hapus Gadai Tidak Dibenarkan' - // }); - // return false; - // } + if(+harini !== +tarikhgadai1){ + Swal.fire({ + icon: 'error', + title: 'Amaran', + text: 'Hapus Gadai Tidak Dibenarkan' + }); + return false; + } } const swalWithBootstrapButtons = Swal.mixin({