summaryrefslogtreecommitdiffstats
path: root/app/views/my
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-26 08:53:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-26 08:53:31 +0000
commit508fc4f454c3d3d2403efd7b666c83871268fe35 (patch)
treebf018ccca3dc58e16cd42165209a6fa82f23eb82 /app/views/my
parentf60d240af0008252482c48de9a112635455c3493 (diff)
downloadredmine-508fc4f454c3d3d2403efd7b666c83871268fe35.tar.gz
redmine-508fc4f454c3d3d2403efd7b666c83871268fe35.zip
Return false after onclick (#24439).
git-svn-id: http://svn.redmine.org/redmine/trunk@15998 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/my')
-rw-r--r--app/views/my/page_layout.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/my/page_layout.html.erb b/app/views/my/page_layout.html.erb
index 690aa25a8..09475c09b 100644
--- a/app/views/my/page_layout.html.erb
+++ b/app/views/my/page_layout.html.erb
@@ -3,7 +3,7 @@
<%= form_tag({:action => "add_block"}, :id => "block-form") do %>
<%= label_tag('block-select', l(:label_my_page_block)) %>:
<%= block_select_tag(@user) %>
- <%= link_to l(:button_add), '#', :onclick => '$("#block-form").submit()', :class => 'icon icon-add' %>
+ <%= link_to l(:button_add), '#', :onclick => '$("#block-form").submit(); return false;', :class => 'icon icon-add' %>
<% end %>
<%= link_to l(:button_back), {:action => 'page'}, :class => 'icon icon-cancel' %>
</div>