diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-05-13 18:30:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-05-13 18:30:56 +0000 |
commit | 288c3b863ddf9a4220f7b6988d603040cbf51a97 (patch) | |
tree | 473e7061e575ff13cdcd8e9271923250343aac3c /public | |
parent | 4a59b869c04ed3188e1d2de3b9f1879ee3876dec (diff) | |
download | redmine-288c3b863ddf9a4220f7b6988d603040cbf51a97.tar.gz redmine-288c3b863ddf9a4220f7b6988d603040cbf51a97.zip |
Fixed that JS warning is not displayed when attachment maximum size is 0 (#13949).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11841 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/attachments.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index 260c060e4..5876800a6 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -141,7 +141,7 @@ function uploadAndAttachFiles(files, inputEl) { var sizeExceeded = false; $.each(files, function() { - if (this.size && maxFileSize && this.size > parseInt(maxFileSize)) {sizeExceeded=true;} + if (this.size && maxFileSize != null && this.size > parseInt(maxFileSize)) {sizeExceeded=true;} }); if (sizeExceeded) { window.alert(maxFileSizeExceeded); |