]> source.dussan.org Git - redmine.git/commitdiff
Prevent page reloading if something goes wrong in the 'add more file' javascript.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 16 Mar 2008 21:41:36 +0000 (21:41 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 16 Mar 2008 21:41:36 +0000 (21:41 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1266 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/attachments/_form.rhtml

index 094668f9d251fe2b4080d15d404b13f1e37c5445..c98528b8549e8686b4a9320901f7b2735853cb55 100644 (file)
@@ -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>