1
0

Changed showAndScrollTo -> show + focus

This commit is contained in:
cryptogopher
2019-11-02 23:53:36 +01:00
parent 12015f6083
commit 020c4e30ea
5 changed files with 6 additions and 5 deletions

View File

@@ -5,7 +5,7 @@
<div class="contextual">
<% if User.current.allowed_to?(:manage_common, @project) %>
<%= link_to t(".heading_new_unit"), '#', :class => 'icon icon-add',
:onclick => 'showAndScrollTo("add-unit", "unit_shortname"); return false;' %>
:onclick => '$("#add-unit").show(); $("#unit_shortname").focus(); return false;' %>
<% end %>
</div>