summaryrefslogtreecommitdiffstats
path: root/public/javascripts
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-03-26 06:38:47 +0000
committerGo MAEDA <maeda@farend.jp>2020-03-26 06:38:47 +0000
commitbf79b3f5b32d8e3c3f85f619f967f2fe846eda5b (patch)
tree90b33c970d21a0bbb7d654bd1e26f27bffbcf816 /public/javascripts
parent795ebcc17c662c649fc8dabea4dda3cf9844393f (diff)
downloadredmine-bf79b3f5b32d8e3c3f85f619f967f2fe846eda5b.tar.gz
redmine-bf79b3f5b32d8e3c3f85f619f967f2fe846eda5b.zip
Show warning when attempting to attach more than the allowed number of attachments (#18555).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19620 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/attachments.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js
index 402cfa53f..567b6be81 100644
--- a/public/javascripts/attachments.js
+++ b/public/javascripts/attachments.js
@@ -29,6 +29,8 @@ function addFile(inputEl, file, eagerUpload) {
addAttachment.toggle(attachmentsFields.children().length < maxFiles);
return attachmentId;
+ } else {
+ alert($('input.file_selector').data('max-number-of-files-message'));
}
return null;
}