From 3d40cab998c7040189886558193014f89e5a41bf Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 27 Feb 2023 19:28:20 +0200 Subject: [PATCH] fix bug affecting main picture in /submit --- files/assets/js/bottom.js | 2 +- files/templates/submit.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/js/bottom.js b/files/assets/js/bottom.js index 50613a191..21c557e15 100644 --- a/files/assets/js/bottom.js +++ b/files/assets/js/bottom.js @@ -143,7 +143,7 @@ function register_new_elements(e) { }); } - const file_inputs = document.querySelectorAll('input[type="file"]') + const file_inputs = document.querySelectorAll('input[type="file"]:not(.not-handle-files)') for (const input of file_inputs) { input.onchange = () => {handle_files(input, input.files)}; } diff --git a/files/templates/submit.html b/files/templates/submit.html index 30fb7025f..1d1d481eb 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -43,7 +43,7 @@ Optional if you have text. You can upload images, videos, or audio.