mirror of
https://github.com/redmine/redmine.git
synced 2025-12-15 21:10:27 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user