MDL-29766 Add drag and drop upload to filemanager / filepicker elements

This commit is contained in:
Davo Smith 2011-11-08 20:05:19 +00:00 committed by Dan Poltawski
parent 0e84b1664d
commit f08fac7c89
9 changed files with 441 additions and 4 deletions

View file

@ -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>';