show "Search" as placeholder

fix sometimes not modified <textbox by adding it to ADD_ET2_LEGACY_PREFIX_REGEXP too
This commit is contained in:
ralf 2022-07-24 09:31:58 +02:00
parent 7c925e5264
commit 79df51dbbb
2 changed files with 3 additions and 2 deletions

View File

@ -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|searchbox|label|avatar|lavatar|image|vfs-mime|vfs-uid|vfs-gid|link|link-[a-z]+|favorites)\s([^>]+)/>#m';
const ADD_ET2_PREFIX_LEGACY_REGEXP = '#<(description|searchbox|textbox|label|avatar|lavatar|image|vfs-mime|vfs-uid|vfs-gid|link|link-[a-z]+|favorites)\s([^>]+)/>#m';
const ADD_ET2_PREFIX_LEGACY_LAST_GROUP = 2;
// switch evtl. set output-compression off, as we can't calculate a Content-Length header with transparent compression

View File

@ -3325,7 +3325,8 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext
self.nextmatch.applyFilters({search: this.get_value()});
},
value: settings.search || '',
fix: !egwIsMobile()
fix: !egwIsMobile(),
placeholder: egw.lang("Search"),
};
// searchbox widget
this.et2_searchbox = <Et2Searchbox>loadWebComponent('et2-searchbox', searchbox_options, this);