summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-05-25 00:11:58 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-05-25 00:11:58 +0000
commite320017cf020be4bcba24e6692d841ad89ba36ed (patch)
tree30c0e790858c075457930f810d2759e192ae876e /public
parent0d34c3731b4df639df760851302ab1809f1fcec5 (diff)
downloadredmine-e320017cf020be4bcba24e6692d841ad89ba36ed.tar.gz
redmine-e320017cf020be4bcba24e6692d841ad89ba36ed.zip
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
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/application.js8
-rw-r--r--public/stylesheets/application.css6
2 files changed, 13 insertions, 1 deletions
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) {
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index 77275a5a1..49366cc96 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -404,6 +404,12 @@ display: block;
width: auto;
}
+.tabular label.inline{
+float:none;
+margin-left: 5px !important;
+width: auto;
+}
+
input#time_entry_comments { width: 90%;}
#preview fieldset {margin-top: 1em; background: url(../images/draft.png)}