diff options
author | Unknwon <u@gogs.io> | 2015-11-23 10:54:48 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-23 10:54:48 -0500 |
commit | ffbeda077cde63ab2893097af2f5c09df5d06b8f (patch) | |
tree | 33993d0f876d2650a765887e054855364b531f75 | |
parent | b2fb7e3fd27f360e65ee60b93cad7d5d9832f818 (diff) | |
parent | 880849a28382f70b975f5ac471946377c3fcd1c3 (diff) | |
download | gitea-ffbeda077cde63ab2893097af2f5c09df5d06b8f.tar.gz gitea-ffbeda077cde63ab2893097af2f5c09df5d06b8f.zip |
Merge pull request #2024 from andreynering/dropzone-allow-all-files
Fixing Dropzone should accept all files when config is "*/*".
-rw-r--r-- | public/js/gogs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index 599f363787..5002f64118 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -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'), |