From 9084c9d90689fd27e8867f54b2b08a79c03230ba Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 4 Sep 2019 19:07:56 +0100 Subject: [PATCH] Experimental cw button replacement --- webinterface.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index a7ed6ef0..7209009e 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1167,6 +1167,9 @@ def clickToDropDownScript() -> str: """Function run onclick to create a dropdown """ script= \ + 'function toggler(divId) {' \ + ' $("#" + divId).toggle();' \ + '}' \ 'function dropdown() {' \ ' document.getElementById("myDropdown").classList.toggle("show");' \ '}' @@ -1690,7 +1693,7 @@ def individualPostAsHtml(pageNumber: int,baseDir: str, \ containerClass='container report' else: contentStr+='Sensitive ' - contentStr+='' + contentStr+='SHOW MORE' contentStr+='
' contentStr+=postJsonObject['object']['content']+attachmentStr contentStr=addEmbeddedElements(contentStr)