From: Jean-Philippe Lang Date: Sun, 16 Mar 2008 21:41:36 +0000 (+0000) Subject: Prevent page reloading if something goes wrong in the 'add more file' javascript. X-Git-Tag: 0.7.0-RC1~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cab300e65045e53afe858f52bfbf5b81488f7ea0;p=redmine.git 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 --- diff --git a/app/views/attachments/_form.rhtml b/app/views/attachments/_form.rhtml index 094668f9d..c98528b85 100644 --- a/app/views/attachments/_form.rhtml +++ b/app/views/attachments/_form.rhtml @@ -4,6 +4,6 @@ <%= l(:label_optional_description) %>
-<%= link_to l(:label_add_another_file), {}, :onclick => 'addFileField(); return false;' %> +<%= 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) %>)