From e27c4a6a9894d0c96421905bf442bdeeab76889f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 25 Feb 2020 21:22:56 +0000 Subject: [PATCH] Open content warning on blog replies --- webinterface.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/webinterface.py b/webinterface.py index 247dc03f..e79da8ef 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2147,11 +2147,7 @@ def contentWarningScriptOpen() -> str: """ script='function showContentWarning(postID) {\n' script+=' var x = document.getElementById(postID);\n' - script+=' if (x.style.display !== "none") {\n' - script+=' x.style.display = "none";\n' - script+=' } else {\n' - script+=' x.style.display = "block";\n' - script+=' }\n' + script+=' x.style.display = "none";\n' script+='}\n' return script