mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-29766 Add drag and drop upload to filemanager / filepicker elements
This commit is contained in:
parent
0e84b1664d
commit
f08fac7c89
9 changed files with 441 additions and 4 deletions
|
@ -43,4 +43,16 @@ M.form_filepicker.init = function(Y, options) {
|
|||
if (item) {
|
||||
item.style.display = '';
|
||||
}
|
||||
|
||||
var dndoptions = {
|
||||
clientid: options.client_id,
|
||||
acceptedtypes: options.accepted_types,
|
||||
maxfiles: -1,
|
||||
maxbytes: options.maxbytes,
|
||||
itemid: options.itemid,
|
||||
repositories: options.repositories,
|
||||
formcallback: options.formcallback,
|
||||
containerprefix: '#file_info_',
|
||||
};
|
||||
M.form_dndupload.init(Y, dndoptions);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue