summaryrefslogtreecommitdiffstats
path: root/app/views/attachments
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-15 14:34:28 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-15 14:34:28 +0000
commite0fb60c6b59ee80d079a7f685db28535be8aaf7c (patch)
treee23f5f0536c72891b68fc02564c853da81ef84da /app/views/attachments
parent6c1db9c3a8b23d64792890fb2855f2f3340dfc7a (diff)
downloadredmine-e0fb60c6b59ee80d079a7f685db28535be8aaf7c.tar.gz
redmine-e0fb60c6b59ee80d079a7f685db28535be8aaf7c.zip
Adds maxlength=255 attribute on attachment description input field (#11365).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9982 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/attachments')
-rw-r--r--app/views/attachments/_form.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/attachments/_form.html.erb b/app/views/attachments/_form.html.erb
index 7eea17bb7..dd55fa3f1 100644
--- a/app/views/attachments/_form.html.erb
+++ b/app/views/attachments/_form.html.erb
@@ -10,7 +10,7 @@
<span>
<%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file',
:onchange => "checkFileSize(this, #{Setting.attachment_max_size.to_i.kilobytes}, '#{escape_javascript(l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)))}');" -%>
- <%= text_field_tag 'attachments[1][description]', '', :id => nil, :class => 'description', :placeholder => l(:label_optional_description) %>
+ <%= text_field_tag 'attachments[1][description]', '', :id => nil, :class => 'description', :maxlength => 255, :placeholder => l(:label_optional_description) %>
<%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %>
</span>
</span>