From 84c61545a95c2367dcbbb87636ed2c27395e2f3c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 5 Feb 2012 11:56:42 +0000 Subject: [PATCH] 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 --- public/javascripts/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]"; -- 2.39.5