]> source.dussan.org Git - redmine.git/commitdiff
Merged r8780 from trunk (#10115).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 5 Feb 2012 11:56:42 +0000 (11:56 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 5 Feb 2012 11:56:42 +0000 (11:56 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.3-stable@8781 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index 5cd38e6d074a335bc1f21f6a63daae6925bf3b77..44c5c3aa501781ea2abb4d53e367ae6d1fa07816 100644 (file)
@@ -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]";