From 62c5bbab91d357711c2270ad20a90847e8e4c66d Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Sat, 21 May 2022 10:01:17 +0200 Subject: [PATCH] Downoad button in mobile mode --- public/js/organization.js | 3 +++ templates/organization.html.php | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/public/js/organization.js b/public/js/organization.js index 76b6a1e..c3c08d1 100644 --- a/public/js/organization.js +++ b/public/js/organization.js @@ -402,6 +402,9 @@ var createEventsListener = function() { }); document.querySelector('#input_pages').value = order.join(','); }); + document.getElementById('save_mobile').addEventListener('click', function(event) { + document.getElementById('save').click(); + }); document.getElementById('input_pdf_upload_2').addEventListener('change', async function(event) { if(this.files[0].size > maxSize) { diff --git a/templates/organization.html.php b/templates/organization.html.php index bd7bddf..dfecb14 100644 --- a/templates/organization.html.php +++ b/templates/organization.html.php @@ -86,6 +86,12 @@ + +
+
+ +
+
@@ -93,6 +99,6 @@ - + \ No newline at end of file