mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Close upload box if no files
This commit is contained in:
parent
4a0dfddde5
commit
c4b183466e
@ -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">' +
|
||||
|
Loading…
Reference in New Issue
Block a user