Changed showAndScrollTo -> show + focus
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<% if User.current.allowed_to?(:manage_common, @project) %>
|
||||
<%= link_to t(".heading_import_ingredients"), '#', :class => 'icon icon-multiple',
|
||||
:onclick => 'showAndScrollTo("import-ingredients", "filename"); return false;' %>
|
||||
:onclick => '$("#import-ingredients").show(); $("#filename").focus(); return false;' %>
|
||||
<%= link_to t(".heading_new_ingredient"), '#', :class => 'icon icon-add',
|
||||
:onclick => 'showAndScrollTo("add-ingredient", "ingredient_name"); return false;' %>
|
||||
:onclick => '$("#add-ingredient").show(); $("#ingredient_name").focus(); return false;' %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user