forked from indymedia/epicyon
Open content warning on blog replies
parent
afb0050bca
commit
e27c4a6a98
|
@ -2147,11 +2147,7 @@ def contentWarningScriptOpen() -> str:
|
||||||
"""
|
"""
|
||||||
script='function showContentWarning(postID) {\n'
|
script='function showContentWarning(postID) {\n'
|
||||||
script+=' var x = document.getElementById(postID);\n'
|
script+=' var x = document.getElementById(postID);\n'
|
||||||
script+=' if (x.style.display !== "none") {\n'
|
script+=' x.style.display = "none";\n'
|
||||||
script+=' x.style.display = "none";\n'
|
|
||||||
script+=' } else {\n'
|
|
||||||
script+=' x.style.display = "block";\n'
|
|
||||||
script+=' }\n'
|
|
||||||
script+='}\n'
|
script+='}\n'
|
||||||
return script
|
return script
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue