Feature #18556 » attachments_3.3.1_increase_number_upload_files.diff
attachments.js 2018-01-25 09:41:48.286070329 -0500 | ||
---|---|---|
3 | 3 | |
4 | 4 |
function addFile(inputEl, file, eagerUpload) { |
5 | 5 | |
6 |
if ($('#attachments_fields').children().length < 10) { |
|
6 |
if ($('#attachments_fields').children().length < 100) {
|
|
7 | 7 | |
8 | 8 |
var attachmentId = addFile.nextAttachmentId++; |
9 | 9 | |
... | ... | |
149 | 149 |
if (sizeExceeded) { |
150 | 150 |
window.alert(maxFileSizeExceeded); |
151 | 151 |
} else { |
152 |
$.each(files, function() {addFile(inputEl, this, true);}); |
|
152 |
$.each(files, function() { |
|
153 |
var ret = addFile(inputEl, this, true); |
|
154 |
if (ret == null) { |
|
155 |
window.alert("Reached max number (100) of simulatenous uploaded files"); return false; |
|
156 |
} |
|
157 |
}); |
|
153 | 158 |
} |
154 | 159 |
} |
155 | 160 |