Prevent page reloading if something goes wrong in the 'add more file' javascript.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1266 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-03-16 21:41:36 +00:00
parent f271e772af
commit cab300e650
1 changed files with 1 additions and 1 deletions

View File

@ -4,6 +4,6 @@
<em><%= l(:label_optional_description) %></em> <em><%= l(:label_optional_description) %></em>
</span> </span>
<br /> <br />
<small><%= link_to l(:label_add_another_file), {}, :onclick => 'addFileField(); return false;' %> <small><%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;' %>
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>) (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
</small> </small>