Fixed importing Foods with QuantityValue
Fixed double flash when not followed by request Added Food#destroy error reporting Simplified prepare_meals with no ingredients Renamed scope on item with subitems: subitems -> with_subitems
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
<% if @food.destroyed? %>
|
||||
$('tr[id=food-<%= @food.id %>]').nextUntil('tr.primary').addBack().remove();
|
||||
<% else %>
|
||||
$('#content').prepend('<%= j error_messages_for @food %>');
|
||||
<% end %>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
$('div[id^=flash_]').remove();
|
||||
$('div[id=errorExplanation]').remove();
|
||||
$('#content').prepend('<%= j render_flash_messages %>');
|
||||
<%= yield %>
|
||||
|
||||
Reference in New Issue
Block a user