Changed showAndScrollTo -> show + focus
This commit is contained in:
parent
12015f6083
commit
020c4e30ea
@ -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 %>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<div class="contextual">
|
||||
<% if User.current.allowed_to?(:manage_common, @project) %>
|
||||
<%= link_to t(".heading_new_source"), '#', :class => 'icon icon-add',
|
||||
:onclick => 'showAndScrollTo("add-source", "source_name"); return false;' %>
|
||||
:onclick => '$("#add-source").show(); $("#source_name").focus(); return false;' %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -4,6 +4,7 @@ table.nutrients.list td.quantity {text-align: left; border-bottom: none;}
|
||||
table.nutrients.list td.space {border-top: none; border-bottom: none;}
|
||||
table.nutrients.list td.value {border-top: none;}
|
||||
table.list tr.ingredient.hidden {opacity: 0.4}
|
||||
table.list td.name {white-space: nowrap;}
|
||||
table.list td.action,
|
||||
table.list td.value {text-align: right;}
|
||||
table.nutrients.list th,
|
||||
|
Reference in New Issue
Block a user