From e320017cf020be4bcba24e6692d841ad89ba36ed Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Tue, 25 May 2010 00:11:58 +0000 Subject: 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 --- public/javascripts/application.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'public/javascripts/application.js') diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 4cd34c2f2..745125047 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -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) { -- cgit v1.2.3