From: Jean-Philippe Lang Date: Sun, 5 Feb 2012 11:56:42 +0000 (+0000) Subject: Merged r8780 from trunk (#10115). X-Git-Tag: 1.3.1~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=84c61545a95c2367dcbbb87636ed2c27395e2f3c;p=redmine.git Merged r8780 from trunk (#10115). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.3-stable@8781 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 5cd38e6d0..44c5c3aa5 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -89,7 +89,7 @@ function addFileField() { 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]";