mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Fixed that datetimepickers not considered the config.php
setting CALENDAR_FIRST_DAY_OF_WEEK
(closes #334)
This commit is contained in:
parent
ce12202c86
commit
991706920f
@ -39,6 +39,7 @@
|
||||
|
||||
### General improvements/fixes
|
||||
- Added a new `config.php` setting `CALENDAR_SHOW_WEEK_OF_YEAR` to configure if calendars should show week numbers (defaults to `true`)
|
||||
- Fixed that datetimepickers not considered the `config.php` setting `CALENDAR_FIRST_DAY_OF_WEEK`
|
||||
- Improved the handling which entry page to use with disabled feature flags (thanks @nielstholenaar)
|
||||
- Boolean settings provided via environment variables (so the strings `true` and `false`) are now parsed correctly (thanks @mduret)
|
||||
- All uploaded pictures (currently for products and recipes) are now automatically downscaled to the appropriate size when serving them to improve page load times
|
||||
|
@ -535,3 +535,12 @@ function LoadImagesLazy()
|
||||
});
|
||||
}
|
||||
LoadImagesLazy();
|
||||
|
||||
if (!Grocy.CalendarFirstDayOfWeek.isEmpty())
|
||||
{
|
||||
moment.updateLocale(moment.locale(), {
|
||||
week: {
|
||||
dow: Grocy.CalendarFirstDayOfWeek
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user