summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-16 21:41:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-16 21:41:36 +0000
commitcab300e65045e53afe858f52bfbf5b81488f7ea0 (patch)
tree7195b57b9bb5b1aa374f7940dec485999970c0fb
parentf271e772afba181fa61cfbac4e5259fd8e4275b3 (diff)
downloadredmine-cab300e65045e53afe858f52bfbf5b81488f7ea0.tar.gz
redmine-cab300e65045e53afe858f52bfbf5b81488f7ea0.zip
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
-rw-r--r--app/views/attachments/_form.rhtml2
1 files changed, 1 insertions, 1 deletions
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 @@
<em><%= l(:label_optional_description) %></em>
</span>
<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) %>)
</small>