1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
body_tracking/app/views/meals/adjust.js.erb

10 lines
406 B
Plaintext

$('tr[id=ingredient-<%= @ingredient.id %>]').replaceWith(
'<%= j render partial: 'meals/show_ingredient', locals: {i: @ingredient} %>'
);
$('tr[id=meal-<%= @meal.id %>]').replaceWith(
'<%= j render partial: 'meals/show', locals: {m: @meal, index: @meal_index} %>'
);
$('tr[id=date-<%= @date.strftime('%Y%m%d') %>]').replaceWith(
'<%= j render partial: 'meals/show_date', locals: {date: @date} %>'
);