mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Improved meal plan entry reference when deleting an entry (references #255)
This commit is contained in:
parent
825be63b93
commit
6b98fa85d3
@ -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).closest(".fc-h-event").attr("data-meal-plan-entry"));
|
||||
var mealPlanEntry = JSON.parse($(this).parents(".fc-h-event:first").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