Open content warning on blog replies

merge-requests/6/head
Bob Mottram 2020-02-25 21:22:56 +00:00
parent afb0050bca
commit e27c4a6a98
1 changed files with 1 additions and 5 deletions

View File

@ -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