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
lFooterButtonX2Str = ""
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
lFooterButtonX1Str = ""
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
lBodyKeyValueStr = ""
for lItem in inCPDict["BodyKeyValueList"]:

Loading…
Cancel
Save