Convert the file attachment's description to a label.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3750 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-05-25 00:11:58 +00:00
parent 0d34c3731b
commit e320017cf0
4 changed files with 16 additions and 4 deletions
+7 -1
View File
@@ -52,11 +52,17 @@ function addFileField() {
d.type = "text";
d.name = "attachments[" + fileFieldCount + "][description]";
d.size = 60;
var dLabel = document.createElement("label");
dLabel.addClassName('inline');
// Pulls the languge value used for Optional Description
dLabel.update($('attachment_description_label_content').innerHTML)
p = document.getElementById("attachments_fields");
p.appendChild(document.createElement("br"));
p.appendChild(f);
p.appendChild(d);
p.appendChild(dLabel);
dLabel.appendChild(d);
}
function showTab(name) {