aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/blueimp/jquery-file-upload/basic-plus.html
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-09-23 09:02:53 +0000
committerMario <mario@mariovavti.com>2019-09-23 12:19:33 +0200
commit3fac7b5bb7e490c9cd641f0ddd6de2d2c76915f6 (patch)
tree158d53f87abfbfc73dcf0b5314c387068afb6cba /vendor/blueimp/jquery-file-upload/basic-plus.html
parent9b90114d035ce4c10ee11cd2fbffe1f5ab95af17 (diff)
downloadvolse-hubzilla-3fac7b5bb7e490c9cd641f0ddd6de2d2c76915f6.tar.gz
volse-hubzilla-3fac7b5bb7e490c9cd641f0ddd6de2d2c76915f6.tar.bz2
volse-hubzilla-3fac7b5bb7e490c9cd641f0ddd6de2d2c76915f6.zip
composer update blueimp/jquery-file-upload
(cherry picked from commit 53b8ee7866eb1394980b08b90153a63563832391)
Diffstat (limited to 'vendor/blueimp/jquery-file-upload/basic-plus.html')
-rw-r--r--vendor/blueimp/jquery-file-upload/basic-plus.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/vendor/blueimp/jquery-file-upload/basic-plus.html b/vendor/blueimp/jquery-file-upload/basic-plus.html
index 6d53acdc1..59019a3eb 100644
--- a/vendor/blueimp/jquery-file-upload/basic-plus.html
+++ b/vendor/blueimp/jquery-file-upload/basic-plus.html
@@ -162,14 +162,14 @@ $(function () {
}).on('fileuploadadd', function (e, data) {
data.context = $('<div/>').appendTo('#files');
$.each(data.files, function (index, file) {
- var node = $('<p/>')
- .append($('<span/>').text(file.name));
- if (!index) {
- node
- .append('<br>')
- .append(uploadButton.clone(true).data(data));
+ $('<p/>')
+ .append($('<span/>').text(file.name))
+ .appendTo(data.context);
+ if (index === data.files.length - 1) {
+ $('<p/>')
+ .append(uploadButton.clone(true).data(data))
+ .appendTo(data.context);
}
- node.appendTo(data.context);
});
}).on('fileuploadprocessalways', function (e, data) {
var index = data.index,