Changed showAndScrollTo -> show + focus
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<div class="contextual">
|
||||
<% if User.current.allowed_to?(:manage_common, @project) %>
|
||||
<%= link_to t(".heading_new_quantity"), '#', :class => 'icon icon-add',
|
||||
:onclick => 'showAndScrollTo("add-quantity", "quantity_name"); return false;' %>
|
||||
:onclick => '$("#add-quantity").show(); $("#quantity_name").focus(); return false;' %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user