diff --git a/api/etemplate.php b/api/etemplate.php index 03c687f76b..f6fc45e94a 100644 --- a/api/etemplate.php +++ b/api/etemplate.php @@ -87,6 +87,10 @@ function send_template() ) . '>' . $matches[2] . ""; }, $str); + // modify <(image|description) expose_view="true" --> <]*)expose_view="true"\s([^><]*)\\/>/', + '', $str); + // ^^^^^^^^^^^^^^^^ above widgets get transformed independent of legacy="true" set in overlay ^^^^^^^^^^^^^^^^^^ // eTemplate marked as legacy --> replace only some widgets (eg. requiring jQueryUI) with web-components diff --git a/api/js/etemplate/Et2Image/Et2Image.ts b/api/js/etemplate/Et2Image/Et2Image.ts index 01eac032ca..0d45262a6c 100644 --- a/api/js/etemplate/Et2Image/Et2Image.ts +++ b/api/js/etemplate/Et2Image/Et2Image.ts @@ -96,7 +96,6 @@ export class Et2Image extends Et2Widget(SlotMixin(LitElement)) implements et2_ID this.label = ""; this.extra_link_target = "_self"; this.extra_link_popup = ""; - this.expose_view = false; this._handleClick = this._handleClick.bind(this); } diff --git a/resources/templates/default/show.xet b/resources/templates/default/show.xet index 7b2584d7ae..253c3c8346 100644 --- a/resources/templates/default/show.xet +++ b/resources/templates/default/show.xet @@ -1,6 +1,5 @@ - - + \ No newline at end of file