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()