git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.3-stable@8781
e93f8b46-1217-0410-a6f0-
8f06a7374b81
var fields = $('attachments_fields');
if (fields.childElements().length >= 10) return false;
fileFieldCount++;
- var s = document.createElement("span");
+ var s = new Element('span');
s.update(fields.down('span').innerHTML);
s.down('input.file').name = "attachments[" + fileFieldCount + "][file]";
s.down('input.description').name = "attachments[" + fileFieldCount + "][description]";