From d57fbc9512ccda7253914f2e5b0e5ce2d181a31e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 5 Feb 2012 11:54:38 +0000 Subject: [PATCH] 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 --- 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 9aa996e3e..44b0bf20c 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -187,7 +187,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]";