##// END OF EJS Templates
Merged r9982 from trunk....
Jean-Philippe Lang -
r9815:873a5cda4fb3
parent child
Show More
@@ -10,7 +10,7
10 10 <span>
11 11 <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file',
12 12 :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)))}');" -%>
13 <%= text_field_tag 'attachments[1][description]', '', :id => nil, :class => 'description', :placeholder => l(:label_optional_description) %>
13 <%= text_field_tag 'attachments[1][description]', '', :id => nil, :class => 'description', :maxlength => 255, :placeholder => l(:label_optional_description) %>
14 14 <%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %>
15 15 </span>
16 16 </span>
@@ -1371,6 +1371,7 class IssuesControllerTest < ActionController::TestCase
1371 1371 :tag => 'input',
1372 1372 :attributes => {:type => 'file', :name => 'attachments[1][file]'}
1373 1373 }
1374 assert_select 'input[name=?][maxlength=255]', 'attachments[1][description]'
1374 1375 end
1375 1376
1376 1377 def test_get_new_should_prefill_the_form_from_params
General Comments 0
You need to be logged in to leave comments. Login now