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
This commit is contained in:
Go MAEDA
2020-03-26 06:38:47 +00:00
parent 795ebcc17c
commit bf79b3f5b3
3 changed files with 4 additions and 0 deletions

View File

@@ -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;
}