##// END OF EJS Templates
Prevent page reloading if something goes wrong in the 'add more file' javascript....
Jean-Philippe Lang -
r1251:cab300e65045
parent child
Show More
@@ -1,9 +1,9
1 1 <span id="attachments_fields">
2 2 <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil -%>
3 3 <%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil %>
4 4 <em><%= l(:label_optional_description) %></em>
5 5 </span>
6 6 <br />
7 <small><%= link_to l(:label_add_another_file), {}, :onclick => 'addFileField(); return false;' %>
7 <small><%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;' %>
8 8 (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
9 9 </small>
General Comments 0
You need to be logged in to leave comments. Login now