Add the file drop uploaded files element
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
parent
496fe44f14
commit
92d30c8005
|
@ -61,7 +61,7 @@
|
|||
$('#drop-upload-done-indicator').addClass('hidden');
|
||||
$('#drop-upload-progress-indicator').removeClass('hidden');
|
||||
|
||||
$('#public-upload ul').append(output({isUploading: true, name: data.files[0].name}));
|
||||
$('#drop-uploaded-files').append(output({isUploading: true, name: data.files[0].name}));
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
data.submit();
|
||||
|
||||
|
@ -69,7 +69,7 @@
|
|||
},
|
||||
|
||||
updateFileItem: function (fileName, fileItem) {
|
||||
$('#public-upload ul li[data-name="' + fileName + '"]').replaceWith(fileItem);
|
||||
$('#drop-uploaded-files li[data-name="' + fileName + '"]').replaceWith(fileItem);
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
},
|
||||
|
||||
|
|
|
@ -100,6 +100,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
|
|||
<a href="#" class="button icon-upload"><?php p($l->t('Select or drop files')) ?></a>
|
||||
<div id="drop-upload-progress-indicator" style="padding-top: 25px;" class="hidden"><?php p($l->t('Uploading files…')) ?></div>
|
||||
<div id="drop-upload-done-indicator" style="padding-top: 25px;" class="hidden"><?php p($l->t('Uploaded files:')) ?></div>
|
||||
<ul id="drop-uploaded-files"></ul>
|
||||
|
||||
<?php if (!empty($_['disclaimer'])) { ?>
|
||||
<div>
|
||||
|
|
Loading…
Reference in New Issue