From cab300e65045e53afe858f52bfbf5b81488f7ea0 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 16 Mar 2008 21:41:36 +0000 Subject: [PATCH] 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 --- app/views/attachments/_form.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) %>) -- 2.39.5