diff --git a/app/views/documents/show.rhtml b/app/views/documents/show.rhtml index 730cbbb11..7a72e2bd2 100644 --- a/app/views/documents/show.rhtml +++ b/app/views/documents/show.rhtml @@ -28,7 +28,8 @@ <% if authorize_for('documents', 'add_attachment') %> - <% form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular") do %> +

<%= toggle_link l(:label_attachment_new), "add_attachment_form" %>

+ <% form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular", :id => "add_attachment_form", :style => "display:none;") do %>

<%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)