Fix ESCAPE in Basic Web CP

dev-linux
Ivan Maslov 4 years ago
parent f618515fc2
commit 9d054fa905

@ -31,11 +31,11 @@ def HTMLControlPanelBC(inCPDict):
# FooterButtonX2List generation # FooterButtonX2List generation
lFooterButtonX2Str = "" lFooterButtonX2Str = ""
for lItem in inCPDict["FooterButtonX2List"]: for lItem in inCPDict["FooterButtonX2List"]:
lFooterButtonX2Str+=f'<div class="ui basic {lItem.get("Color","")} button" onclick="{lItem.get("OnClick","")}">{lItem.get("Text","")}</div>' lFooterButtonX2Str+=f'<div class="ui basic {lItem.get("Color","")} button" onclick="{JSEscapeForHTMLInline(lItem.get("OnClick",""))}">{lItem.get("Text","")}</div>'
# FooterButtonX1List generation # FooterButtonX1List generation
lFooterButtonX1Str = "" lFooterButtonX1Str = ""
for lItem in inCPDict["FooterButtonX1List"]: for lItem in inCPDict["FooterButtonX1List"]:
lFooterButtonX1Str+=f'<div class="ui basic {lItem.get("Color","")} button" onclick="{lItem.get("OnClick","")}">{lItem.get("Text","")}</div>' lFooterButtonX1Str+=f'<div class="ui basic {lItem.get("Color","")} button" onclick="{JSEscapeForHTMLInline(lItem.get("OnClick",""))}">{lItem.get("Text","")}</div>'
# BodyKeyValue generation # BodyKeyValue generation
lBodyKeyValueStr = "" lBodyKeyValueStr = ""
for lItem in inCPDict["BodyKeyValueList"]: for lItem in inCPDict["BodyKeyValueList"]:

Loading…
Cancel
Save