diff --git a/app.php b/app.php index 95681fb..0e52701 100644 --- a/app.php +++ b/app.php @@ -208,7 +208,7 @@ $f3->route('POST /share', array_map('unlink', $svgFiles); } - $f3->reroute('/signature/'.$hash); + $f3->reroute('/signature/'.$hash."#informations"); } ); @@ -302,7 +302,7 @@ $f3->route('POST /signature/@hash/save', array_map('unlink', $svgFiles); } - $f3->reroute('/signature/'.$f3->get('PARAMS.hash')); + $f3->reroute('/signature/'.$f3->get('PARAMS.hash')."#signed"); } ); diff --git a/public/js/signature.js b/public/js/signature.js index 0e96ae0..e29cf5c 100644 --- a/public/js/signature.js +++ b/public/js/signature.js @@ -960,6 +960,11 @@ var pageSignature = async function(url) { modalInformations.show(); } + if(window.location.hash == '#signed') { + let modalSigned = new bootstrap.Modal(document.getElementById('modal-signed')); + modalSigned.show(); + } + let filename = url.replace('/pdf/', ''); document.title = filename + ' - ' + document.title; document.getElementById('page-upload').classList.add('d-none'); diff --git a/templates/signature.html.php b/templates/signature.html.php index c79782e..ce58c60 100644 --- a/templates/signature.html.php +++ b/templates/signature.html.php @@ -168,7 +168,7 @@ -
C'est aussi depuis cette page qu'il est possible de télécharger le PDF signer par tous.
+C'est aussi depuis cette page qu'il est possible de télécharger le PDF signer par tous le monde.
+ +