mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-18 17:15:13 +01: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']) }}",
|
label: "{{ translate('serverFiles', 'upload', data['lang']) }}",
|
||||||
className: "btn-default",
|
className: "btn-default",
|
||||||
callback: async function () {
|
callback: async function () {
|
||||||
|
if ($("#files").get(0).files.length === 0) {
|
||||||
|
return hideUploadBox();
|
||||||
|
}
|
||||||
var height = files.files.length * 50;
|
var height = files.files.length * 50;
|
||||||
|
|
||||||
var waitMessage = '<p class="text-center mb-0">' +
|
var waitMessage = '<p class="text-center mb-0">' +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user