From fccfce2ae8bfd3618a02658a1326ed8a36bf81e9 Mon Sep 17 00:00:00 2001 From: akemidx Date: Tue, 30 Jul 2024 19:27:37 -0400 Subject: [PATCH] first thought --- resources/views/account/accept/create.blade.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/resources/views/account/accept/create.blade.php b/resources/views/account/accept/create.blade.php index b9843cd47b..e22798505b 100644 --- a/resources/views/account/accept/create.blade.php +++ b/resources/views/account/accept/create.blade.php @@ -134,11 +134,13 @@ }); $('#submit-button').on("click", function (event) { - if (signaturePad.isEmpty()) { - alert("Please provide signature first."); - return false; - } else { - $('#signature_output').val(signaturePad.toDataURL()); + if(signaturePad != null) { + if (signaturePad.isEmpty()) { + alert("Please provide signature first."); + return false; + } else { + $('#signature_output').val(signaturePad.toDataURL()); + } } });