diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-11-26 08:53:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-11-26 08:53:31 +0000 |
commit | 508fc4f454c3d3d2403efd7b666c83871268fe35 (patch) | |
tree | bf018ccca3dc58e16cd42165209a6fa82f23eb82 /app/views/my | |
parent | f60d240af0008252482c48de9a112635455c3493 (diff) | |
download | redmine-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.erb | 2 |
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> |