Close upload box if no files

This commit is contained in:
Andrew 2024-06-17 13:31:34 -04:00
parent 4a0dfddde5
commit c4b183466e

View File

@ -746,6 +746,9 @@
label: "{{ translate('serverFiles', 'upload', data['lang']) }}",
className: "btn-default",
callback: async function () {
if ($("#files").get(0).files.length === 0) {
return hideUploadBox();
}
var height = files.files.length * 50;
var waitMessage = '<p class="text-center mb-0">' +