From ae3831efb567280e3d7b906a75d7ee777c12f0cb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 25 Oct 2022 00:02:44 +0200 Subject: [PATCH] another small js fix --- files/assets/js/submit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/assets/js/submit.js b/files/assets/js/submit.js index 7fb40537e..d9afeffcb 100644 --- a/files/assets/js/submit.js +++ b/files/assets/js/submit.js @@ -87,7 +87,8 @@ document.onpaste = function(event) { } document.getElementById('file-upload').setAttribute('required', 'false'); document.getElementById('post-url').value = null; - localStorage.setItem("post-url", "") + localStorage.setItem("post-url", "") + document.getElementById('image-upload-block').classList.remove('d-none') } checkForRequired(); }