mirror of
https://github.com/grocy/grocy.git
synced 2025-09-29 19:12:24 +00:00
Added a new config.php
setting CALENDAR_FIRST_DAY_OF_WEEK
to be able to change the first day of a week used for calendar views (closes #256)
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
$("#calendar").fullCalendar({
|
||||
var firstDay = null;
|
||||
if (!Grocy.CalendarFirstDayOfWeek.isEmpty())
|
||||
{
|
||||
firstDay = parseInt(Grocy.CalendarFirstDayOfWeek);
|
||||
}
|
||||
|
||||
$("#calendar").fullCalendar({
|
||||
"themeSystem": "bootstrap4",
|
||||
"header": {
|
||||
"left": "month,basicWeek,listWeek",
|
||||
@@ -6,6 +12,7 @@
|
||||
"right": "prev,next"
|
||||
},
|
||||
"weekNumbers": true,
|
||||
"firstDay": firstDay,
|
||||
"eventLimit": true,
|
||||
"eventSources": fullcalendarEventSources
|
||||
});
|
||||
|
Reference in New Issue
Block a user