Added adjusting ingredient amount
This commit is contained in:
2
app/views/ingredients/adjust.js.erb
Normal file
2
app/views/ingredients/adjust.js.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
$('tr[id=ingredient-<%= @ingredient.id %>] td.amount span')
|
||||
.html('<%= j "#{@ingredient.amount}" %>');
|
||||
@@ -21,8 +21,8 @@
|
||||
<td class="name unwrappable" style="width: 5%;">
|
||||
<%= i.food.name %>
|
||||
</td>
|
||||
<td style="text-align: left;" class="unwrappable" colspan="2">
|
||||
<%= adjust_ingredient_links(i) { raw " #{i.amount} " } %>
|
||||
<td class="amount unwrappable" style="text-align: left;" colspan="2">
|
||||
<%= adjust_ingredient_links(i) { raw " <span>#{i.amount}</span> " } %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user