mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +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
|
@ -1902,6 +1902,7 @@ class core_renderer extends renderer_base {
|
|||
$strsaved = get_string('filesaved', 'repository');
|
||||
$straddfile = get_string('openpicker', 'repository');
|
||||
$strloading = get_string('loading', 'repository');
|
||||
$strdndenabled = get_string('dndenabled_single', 'moodle');
|
||||
$icon_progress = $OUTPUT->pix_icon('i/loading_small', $strloading).'';
|
||||
|
||||
$currentfile = $options->currentfile;
|
||||
|
@ -1935,7 +1936,9 @@ $icon_progress
|
|||
EOD;
|
||||
if ($options->env != 'url') {
|
||||
$html .= <<<EOD
|
||||
<div id="file_info_{$client_id}" class="mdl-left filepicker-filelist">$currentfile</div>
|
||||
<div id="file_info_{$client_id}" class="mdl-left filepicker-filelist">
|
||||
$currentfile<span id="dndenabled-{$client_id}" style="display: none"> - $strdndenabled </span>
|
||||
</div>
|
||||
EOD;
|
||||
}
|
||||
$html .= '</div>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue