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:
Jean-Philippe Lang 2012-02-05 11:54:38 +00:00
parent 232fca78a2
commit d57fbc9512
1 changed files with 1 additions and 1 deletions

View File

@ -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]";