From 7dc959c223ddc4034be151a0d390a3dba349a7be Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 5 May 2022 19:07:44 +0200 Subject: [PATCH] automatic convert <(image|description) expose_view="true" to ' . $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