Support dynamic "today" for MEAL_PLAN_FIRST_DAY_OF_WEEK (closes #2205)

This commit is contained in:
Bernd Bestel
2023-05-01 14:49:02 +02:00
parent 7ee79ec56c
commit 5ab31f726a
4 changed files with 8 additions and 1 deletions

View File

@@ -9,6 +9,11 @@ if (Grocy.CalendarFirstDayOfWeek)
if (Grocy.MealPlanFirstDayOfWeek)
{
firstDay = Number.parseInt(Grocy.MealPlanFirstDayOfWeek);
if (firstDay == -1)
{
firstDay = moment().day();
}
}
$(".calendar").each(function()