From 382593a8a2584159d514bf57b4502e6c3fbdd2a0 Mon Sep 17 00:00:00 2001 From: Sibin Date: Mon, 15 Jun 2020 23:56:08 +0530 Subject: [PATCH] handle id==0 and cancellation of confirm dialog box handle id==0 and cancellation of confirm dialog box --- resources/views/list.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/list.blade.php b/resources/views/list.blade.php index 8924ebc4e72d..2cc61cc72a3d 100644 --- a/resources/views/list.blade.php +++ b/resources/views/list.blade.php @@ -172,7 +172,7 @@ } submittedForm = true; - if (id) { + if (id || id===0) { $('#public_id_{{ $entityType }}').val(id); } @@ -180,7 +180,9 @@ sweetConfirm(function() { $('#action_{{ $entityType }}').val(action); $('form.listForm_{{ $entityType }}').submit(); - }); + }, null, null, function(){ // CancelCallback + submittedForm = false; + }); } else { $('#action_{{ $entityType }}').val(action); $('form.listForm_{{ $entityType }}').submit();