From 8d1fa362f737adbcb05d64785c106ea76b775237 Mon Sep 17 00:00:00 2001 From: akemidx Date: Wed, 31 Jul 2024 07:13:42 -0400 Subject: [PATCH] restoring code --- resources/views/account/accept/create.blade.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/resources/views/account/accept/create.blade.php b/resources/views/account/accept/create.blade.php index e22798505b..4dc5d5cd6f 100644 --- a/resources/views/account/accept/create.blade.php +++ b/resources/views/account/accept/create.blade.php @@ -134,15 +134,11 @@ }); $('#submit-button').on("click", function (event) { - if(signaturePad != null) { - if (signaturePad.isEmpty()) { - alert("Please provide signature first."); - return false; - } else { - $('#signature_output').val(signaturePad.toDataURL()); - } - } - }); + if (signaturePad.isEmpty()) { + alert("Please provide signature first."); + return false; + } else { + $('#signature_output').val(signaturePad.toDataURL());