From f0e86c61da0c8d05c01b71a256f7a0390f3d98c8 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Sat, 21 May 2022 02:19:09 +0200 Subject: [PATCH] Checkbox of a file placed at the end --- public/js/organization.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/organization.js b/public/js/organization.js index d0e3321..76b6a1e 100644 --- a/public/js/organization.js +++ b/public/js/organization.js @@ -225,7 +225,7 @@ var updateListePDF = function() { for (var i = 0; i < document.querySelector('#input_pdf').files.length; i++) { let pdfLetter = String.fromCharCode(96 + i+1).toUpperCase(); const pdfFile = document.querySelector('#input_pdf').files.item(i); - document.querySelector('#list_pdf').insertAdjacentHTML('beforeend', '
  • '+decodeURI(pdfFile.name)+'
  • '); + document.querySelector('#list_pdf').insertAdjacentHTML('beforeend', '
  • '+decodeURI(pdfFile.name)+'
  • '); let fileItem = document.querySelector('#file_' + pdfLetter); fileItem.querySelector('input[type=checkbox]').addEventListener('change', function(e) { document.querySelectorAll('.canvas-container').forEach(function(page) {