From 0aa813a0ff9ba08b85ed8c76c9ac7012f12d7998 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 1 Jun 2022 16:05:34 +0200 Subject: [PATCH] got LinkEntry mostly working --- api/etemplate.php | 107 +++++++++--------- api/js/etemplate/Et2Link/Et2LinkAppSelect.ts | 15 ++- api/js/etemplate/Et2Link/Et2LinkEntry.ts | 85 +++++++++++++- api/js/etemplate/Et2Link/Et2LinkSearch.ts | 9 +- .../Et2Select/Et2WidgetWithSelectMixin.ts | 8 +- api/js/etemplate/Et2Select/SearchMixin.ts | 8 +- 6 files changed, 168 insertions(+), 64 deletions(-) diff --git a/api/etemplate.php b/api/etemplate.php index 067da15147..45b88a28f2 100644 --- a/api/etemplate.php +++ b/api/etemplate.php @@ -17,7 +17,7 @@ const ADD_ET2_PREFIX_REGEXP = '#<((/?)([vh]?box|date(-time[^\s]*|-duration|-sinc const ADD_ET2_PREFIX_LAST_GROUP = 6; // unconditional of legacy add et2- prefix to this widgets -const ADD_ET2_PREFIX_LEGACY_REGEXP = '#<(description|label|image|vfs-mime|vfs-uid|vfs-gid|link|link-string|link-list|favorites)\s([^>]+)/>#m'; +const ADD_ET2_PREFIX_LEGACY_REGEXP = '#<(description|label|image|vfs-mime|vfs-uid|vfs-gid|link|link-string|link-list|link-search|link-entry|link-apps|favorites)\s([^>]+)/>#m'; // switch evtl. set output-compression off, as we can't calculate a Content-Length header with transparent compression ini_set('zlib.output_compression', 0); @@ -67,6 +67,59 @@ function send_template() // fix -->