From 51813856021fb08a3f6a399dd5230bf8241b0094 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 24 May 2024 18:39:28 +0200 Subject: [PATCH] made upload button toggle popup --- res/forum/script.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/res/forum/script.js b/res/forum/script.js index 8b695c3..0680f0b 100644 --- a/res/forum/script.js +++ b/res/forum/script.js @@ -92,7 +92,13 @@ function is_admin() function show_upload_popup() { - $("#upload_popup").css("display", "flex"); + if ($("#upload_popup").css("display") == "flex") + { + $("#upload_popup").css("display", "none"); + } else + { + $("#upload_popup").css("display", "flex"); + } } function upload()