some fixes for vfsSearchUI

This commit is contained in:
ralf 2022-08-15 17:38:43 +02:00
parent 2b1ad243d0
commit 2a8aa8e7ae
4 changed files with 15 additions and 13 deletions

View File

@ -42,6 +42,7 @@ export class Et2Searchbox extends Et2Textbox
this.clearable = true;
this.type = 'search';
this.placeholder = 'search';
this.enterkeyhint = 'search';
}

View File

@ -1251,7 +1251,7 @@ export class et2_vfsSelect extends et2_inputWidget
minWidth: 500,
minHeight: 400,
value: data,
template: egw.webserverUrl + '/api/templates/default/vfsSelectUI.xet?1',
template: egw.webserverUrl + '/api/templates/default/vfsSelectUI.xet',
resizable: false,
// Don't destroy on close, it would take out the opening etemplate
destroy_on_close: false

View File

@ -1344,7 +1344,6 @@ et2-link-list et2-link:hover {
div.et2_vfsPath {
position: relative;
overflow: hidden;
}
div.et2_vfsPath ul {

View File

@ -5,14 +5,15 @@
<template id="api.vfsSelectUI" template="" lang="" group="0" version="1.9.002">
<grid width="100%" class="vfs-select-container" resize_ratio="0">
<columns>
<column/>
<column width="100%"/>
</columns>
<rows >
<row class="et2_toolbar" disabled="@mode=/(open-multiple|select-dir)/">
<textbox id="name" class="et2_fullWidth" blur="enter your file name"/>
</row>
<row class="nextmatch_header_row">
<box class="et2_toolbar et2_fullWidth">
<vbox>
<box class="et2_toolbar">
<buttononly statustext="Go to your home directory" id="home" onclick="app.vfsSelectUI.do_action('home', widget)" image="filemanager/gohome" background_image="1"/>
<buttononly statustext="Up" id="up" onclick="app.vfsSelectUI.change_dir('..', widget);" image="filemanager/goup" background_image="1"/>
<buttononly statustext="Favorites" id="favorites" onclick="app.vfsSelectUI.change_dir('/apps/favorites', widget);" image="filemanager/fav_filter" background_image="1"/>
@ -20,8 +21,9 @@
<buttononly statustext="Create directory" id="createdir" class="createDir" onclick="app.vfsSelectUI.createdir" image="filemanager/button_createdir" ro_image="filemanager/createdir_disabled" background_image="1"/>
<file id='upload_file' statustext="upload file" progress_dropdownlist = "true" multiple="true" onFinish="app.vfsSelectUI.storeFile"/>
<searchbox id="search" onchange="app.vfsSelectUI.search"/>
<vfs-path id="path" class="et2_fullWidth selectPath" align="left" onchange="app.vfsSelectUI.do_action('path', widget)"/>
</box>
<vfs-path id="path" class="et2_fullWidth selectPath" align="left" onchange="app.vfsSelectUI.do_action('path', widget)" width="99.2%"/>
</vbox>
</row>
<row>
<hbox class="selectFiles">