mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Allow multiple uploads if id ends with '/', mime filter as a legacy option
This commit is contained in:
parent
ced0e0787e
commit
ab22ccef8e
@ -393,13 +393,21 @@ et2_register_widget(et2_vfsUid, ["vfs-uid","vfs-gid"]);
|
||||
*/
|
||||
var et2_vfsUpload = et2_file.extend({
|
||||
|
||||
legacyOptions: ["mime"],
|
||||
|
||||
asyncOptions: {
|
||||
url: egw_json_request.prototype._assembleAjaxUrl("etemplate_widget_vfs::ajax_upload::etemplate")
|
||||
},
|
||||
|
||||
init: function() {
|
||||
init: function(_parent, attrs) {
|
||||
this._super.apply(this, arguments);
|
||||
this.input.addClass("et2_vfs");
|
||||
|
||||
// If the ID is a directory, allow multiple uploads
|
||||
if(this.options.id.substr(-1) == '/')
|
||||
{
|
||||
this.set_multiple(true);
|
||||
}
|
||||
},
|
||||
|
||||
set_value: function(_value) {
|
||||
|
Loading…
Reference in New Issue
Block a user