Multiple files upload #1559
This commit is contained in:
parent
0af328d211
commit
c780e8e349
File diff suppressed because one or more lines are too long
@ -151,8 +151,9 @@ function dmsfAddFile(inputEl, file, eagerUpload) {
|
||||
|
||||
let attachments = $('#dmsf_attachments_fields');
|
||||
let max = ($(inputEl).attr('multiple') == 'multiple') ? 10 : 1
|
||||
let n = attachments.children('.attachment').length;
|
||||
|
||||
if (attachments.children().length < max) {
|
||||
if (n < max) {
|
||||
|
||||
let attachmentId = dmsfAddFile.nextAttachmentId++;
|
||||
let fileSpan = $('<span>', { id: 'dmsf_attachments_' + attachmentId, 'class': 'attachment' });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user