From 0cc5ba6439c93cc483a5917395e4cdee2ac4ced0 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Fri, 1 Apr 2022 00:32:52 +0200 Subject: [PATCH] Adding document filename in sidebar --- public/js/signature.js | 3 +++ templates/signature.html.php | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/js/signature.js b/public/js/signature.js index 71140d2..9b2ab2d 100644 --- a/public/js/signature.js +++ b/public/js/signature.js @@ -23,6 +23,9 @@ var loadPDF = async function(pdfBlob, filename) { let url = await URL.createObjectURL(pdfBlob); + text_document_name.querySelector('span').innerText = filename; + text_document_name.setAttribute('title', filename); + let dataTransfer = new DataTransfer(); dataTransfer.items.add(new File([pdfBlob], filename, { type: 'application/pdf' diff --git a/templates/signature.html.php b/templates/signature.html.php index e7df87e..7c4fa5b 100644 --- a/templates/signature.html.php +++ b/templates/signature.html.php @@ -37,7 +37,8 @@
Signature du PDF
-
+
+

Lettre de demande de renouvellement aux SCOP_signe.pdf