fix not set image (if it was set to "") and missing onclick attribute

thought some button click-handler are still not working
This commit is contained in:
ralf 2022-05-13 16:54:02 +02:00
parent 273fe9a28a
commit ace84d7953
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<!-- $Id$ -->
<overlay>
<template id="admin.acl.add" template="" lang="" group="0" version="1.9.001">
<buttononly statustext="Add" id="add" onclick='app.admin.acl({id:"add"},[{id:""}])'/>
<buttononly statustext="Add" id="add" onclick="app.admin.acl({id:'add'},[{id:''}])"/>
</template>
<template id="admin.acl.rows" template="" lang="" group="0" version="1.9.001">
<grid width="100%">
@ -70,4 +70,4 @@
</rows>
</grid>
</template>
</overlay>
</overlay>

View File

@ -267,7 +267,7 @@ export class Et2Button extends Et2InputWidget(SlotMixin(LionButton))
return "";
}
if(typeof this.image == 'undefined')
if(!this.image)
{
for(const image in Et2Button.default_background_images)
{
@ -339,4 +339,4 @@ export class Et2Button extends Et2InputWidget(SlotMixin(LionButton))
}
// @ts-ignore TypeScript is not recognizing that Et2Button is a LitElement
customElements.define("et2-button", Et2Button);
customElements.define("et2-button", Et2Button);