From cb62c760a8f952b17d6ee1e94462ada08138bdd5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 8 Feb 2023 18:50:02 +0200 Subject: [PATCH] revert last commit --- files/assets/js/submit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/submit.js b/files/assets/js/submit.js index a3c346861..6ceb2dac4 100644 --- a/files/assets/js/submit.js +++ b/files/assets/js/submit.js @@ -244,12 +244,12 @@ function submit(form) { xhr.setRequestHeader('xhr', 'xhr'); xhr.onload = function() { - submitButton.disabled = false; uploadfilelist.classList.add("d-none") if (xhr.status >= 200 && xhr.status < 300) { const post_id = JSON.parse(xhr.response)['post_id']; location.href = "/post/" + post_id } else { + submitButton.disabled = false; document.getElementById('toast-post-error-text').innerText = "Error, please try again later." try { let data=JSON.parse(xhr.response);