Remove the internal meal plan recipe when removing a meal plan entry (fixes #298)

This commit is contained in:
Bernd Bestel
2019-07-06 13:55:29 +02:00
parent 3fcede0b7c
commit 67cfd0ba5f
2 changed files with 93 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ $(document).on("click", ".remove-recipe-button", function(e)
Grocy.Api.Delete('objects/meal_plan/' + mealPlanEntry.id.toString(), { },
function(result)
{
calendar.fullCalendar('removeEvents', [mealPlanEntry.id]);
window.location.reload();
},
function(xhr)
{