##// END OF EJS Templates
Return false after onclick (#24439)....
Jean-Philippe Lang -
r15616:508fc4f454c3
parent child
Show More
@@ -3,7 +3,7
3 <%= form_tag({:action => "add_block"}, :id => "block-form") do %>
3 <%= form_tag({:action => "add_block"}, :id => "block-form") do %>
4 <%= label_tag('block-select', l(:label_my_page_block)) %>:
4 <%= label_tag('block-select', l(:label_my_page_block)) %>:
5 <%= block_select_tag(@user) %>
5 <%= block_select_tag(@user) %>
6 <%= link_to l(:button_add), '#', :onclick => '$("#block-form").submit()', :class => 'icon icon-add' %>
6 <%= link_to l(:button_add), '#', :onclick => '$("#block-form").submit(); return false;', :class => 'icon icon-add' %>
7 <% end %>
7 <% end %>
8 <%= link_to l(:button_back), {:action => 'page'}, :class => 'icon icon-cancel' %>
8 <%= link_to l(:button_back), {:action => 'page'}, :class => 'icon icon-cancel' %>
9 </div>
9 </div>
General Comments 0
You need to be logged in to leave comments. Login now