0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-28 14:23:11 +01:00

Fixing Dropzone should accept all files when config is "*/*".

This commit is contained in:
Andrey Nering 2015-11-23 13:46:58 -02:00
parent b2fb7e3fd2
commit 880849a283

View File

@ -735,7 +735,7 @@ $(document).ready(function () {
headers: {"X-Csrf-Token": csrf},
maxFiles: $dropz.data('max-file'),
maxFilesize: $dropz.data('max-size'),
acceptedFiles: $dropz.data('accepts'),
acceptedFiles: ($dropz.data('accepts') === '*/*') ? null : $dropz.data('accepts'),
addRemoveLinks: true,
dictDefaultMessage: $dropz.data('default-message'),
dictInvalidFileType: $dropz.data('invalid-input-type'),