Fixed: Can't attach more than 1 file on IE 6 and 7 (#10115).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8780 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
232fca78a2
commit
d57fbc9512
|
@ -187,7 +187,7 @@ function addFileField() {
|
||||||
var fields = $('attachments_fields');
|
var fields = $('attachments_fields');
|
||||||
if (fields.childElements().length >= 10) return false;
|
if (fields.childElements().length >= 10) return false;
|
||||||
fileFieldCount++;
|
fileFieldCount++;
|
||||||
var s = document.createElement("span");
|
var s = new Element('span');
|
||||||
s.update(fields.down('span').innerHTML);
|
s.update(fields.down('span').innerHTML);
|
||||||
s.down('input.file').name = "attachments[" + fileFieldCount + "][file]";
|
s.down('input.file').name = "attachments[" + fileFieldCount + "][file]";
|
||||||
s.down('input.description').name = "attachments[" + fileFieldCount + "][description]";
|
s.down('input.description').name = "attachments[" + fileFieldCount + "][description]";
|
||||||
|
|
Loading…
Reference in New Issue