mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Add a boolean listonly option to vfs-upload widget in order to render only the file list
This commit is contained in:
parent
f23a800f83
commit
2e5c433ab9
@ -936,6 +936,12 @@ export class et2_vfsUpload extends et2_file
|
||||
"description": "Upload files to the specified VFS path",
|
||||
"type": "string",
|
||||
"default": ''
|
||||
},
|
||||
"listonly": {
|
||||
"name": "List Only",
|
||||
"description": "Display given file objects only as list (removes span,input and progress from the dom)",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
};
|
||||
|
||||
@ -967,6 +973,12 @@ export class et2_vfsUpload extends et2_file
|
||||
this.set_multiple(true);
|
||||
}
|
||||
this.list = jQuery(document.createElement('table')).appendTo(this.node);
|
||||
if (this.options.listonly)
|
||||
{
|
||||
this.input.remove();
|
||||
this.span.remove();
|
||||
this.progress.remove();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user