mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 11:48:55 +00:00
Simplified initial /mealplan start date handling (fixes #2286)
This commit is contained in:
@@ -668,8 +668,8 @@ $(document).on("click", ".easy-link-copy-textbox", function()
|
||||
if (Grocy.CalendarFirstDayOfWeek)
|
||||
{
|
||||
moment.updateLocale(moment.locale(), {
|
||||
week: {
|
||||
dow: Number.parseInt(Grocy.CalendarFirstDayOfWeek)
|
||||
"week": {
|
||||
"dow": Number.parseInt(Grocy.CalendarFirstDayOfWeek)
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -772,18 +772,6 @@ $(window).on("message", function(e)
|
||||
}
|
||||
});
|
||||
|
||||
if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_RECIPES)
|
||||
{
|
||||
if ($(window).width() < 768)
|
||||
{
|
||||
$("#meal-plan-nav-link").attr("href", $("#meal-plan-nav-link").attr("href") + "?start=" + moment().format("YYYY-MM-DD") + "&days=0");
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#meal-plan-nav-link").attr("href", $("#meal-plan-nav-link").attr("href") + "?start=" + moment().startOf("week").format("YYYY-MM-DD"));
|
||||
}
|
||||
}
|
||||
|
||||
$('[data-toggle="tooltip"][data-html="true"]').on("shown.bs.tooltip", function()
|
||||
{
|
||||
RefreshLocaleNumberDisplay(".tooltip");
|
||||
|
Reference in New Issue
Block a user