mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Fixed deleting meal plan entries did not work (fixes #255)
This commit is contained in:
parent
91116ee768
commit
2b77bc6ae6
@ -98,7 +98,7 @@ $("#add-recipe-modal").on("shown.bs.modal", function(e)
|
||||
|
||||
$(document).on("click", ".remove-recipe-button", function(e)
|
||||
{
|
||||
var mealPlanEntry = JSON.parse($(this).parent().parent().attr("data-meal-plan-entry"));
|
||||
var mealPlanEntry = JSON.parse($(this).closest(".fc-h-event").attr("data-meal-plan-entry"));
|
||||
|
||||
Grocy.Api.Delete('objects/meal_plan/' + mealPlanEntry.id.toString(), { },
|
||||
function(result)
|
||||
|
Loading…
x
Reference in New Issue
Block a user