From c6106543e1c54f7a776a77140717ef6fbd924233 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 29 Jul 2012 10:12:26 +0000 Subject: html5 compliance. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10110 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/attachments/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/attachments') diff --git a/app/views/attachments/_form.html.erb b/app/views/attachments/_form.html.erb index dd55fa3f1..e47c288a9 100644 --- a/app/views/attachments/_form.html.erb +++ b/app/views/attachments/_form.html.erb @@ -8,7 +8,7 @@ <% end %> - <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file', + <%= file_field_tag 'attachments[1][file]', :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', :maxlength => 255, :placeholder => l(:label_optional_description) %> <%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %> -- cgit v1.2.3