mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Support dynamic "today" for MEAL_PLAN_FIRST_DAY_OF_WEEK (closes #2205)
This commit is contained in:
@@ -9,6 +9,11 @@ if (Grocy.CalendarFirstDayOfWeek)
|
||||
if (Grocy.MealPlanFirstDayOfWeek)
|
||||
{
|
||||
firstDay = Number.parseInt(Grocy.MealPlanFirstDayOfWeek);
|
||||
|
||||
if (firstDay == -1)
|
||||
{
|
||||
firstDay = moment().day();
|
||||
}
|
||||
}
|
||||
|
||||
$(".calendar").each(function()
|
||||
|
Reference in New Issue
Block a user