mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 18:08:02 +02: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",
|
"description": "Upload files to the specified VFS path",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": ''
|
"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.set_multiple(true);
|
||||||
}
|
}
|
||||||
this.list = jQuery(document.createElement('table')).appendTo(this.node);
|
this.list = jQuery(document.createElement('table')).appendTo(this.node);
|
||||||
|
if (this.options.listonly)
|
||||||
|
{
|
||||||
|
this.input.remove();
|
||||||
|
this.span.remove();
|
||||||
|
this.progress.remove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user