diff --git a/public/js/app.js b/public/js/app.js index 5200428..109d3c2 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -391,6 +391,11 @@ loadingTask.promise.then(function(pdf) { } }); + document.getElementById('signature-pad-reset').addEventListener('click', function(event) { + signaturePad.clear(); + event.preventDefault(); + }) + document.querySelectorAll('#modalAddSvg .nav-link').forEach(function(item) { item.addEventListener('shown.bs.tab', function (event) { var firstInput = document.querySelector(event.target.dataset.bsTarget).querySelector('input'); if(firstInput) { diff --git a/templates/pdf.html.php b/templates/pdf.html.php index 1a77c26..308cd6e 100644 --- a/templates/pdf.html.php +++ b/templates/pdf.html.php @@ -113,6 +113,7 @@