From 3fac7b5bb7e490c9cd641f0ddd6de2d2c76915f6 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 23 Sep 2019 09:02:53 +0000 Subject: composer update blueimp/jquery-file-upload (cherry picked from commit 53b8ee7866eb1394980b08b90153a63563832391) --- vendor/blueimp/jquery-file-upload/basic-plus.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'vendor/blueimp/jquery-file-upload/basic-plus.html') 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 = $('
').appendTo('#files'); $.each(data.files, function (index, file) { - var node = $('

') - .append($('').text(file.name)); - if (!index) { - node - .append('
') - .append(uploadButton.clone(true).data(data)); + $('

') + .append($('').text(file.name)) + .appendTo(data.context); + if (index === data.files.length - 1) { + $('

') + .append(uploadButton.clone(true).data(data)) + .appendTo(data.context); } - node.appendTo(data.context); }); }).on('fileuploadprocessalways', function (e, data) { var index = data.index, -- cgit v1.2.3