Make it configurable if calendars shows week numbers or not (closes #333)

This commit is contained in:
Bernd Bestel
2019-09-18 18:30:25 +02:00
parent ca470ed4ee
commit ce12202c86
5 changed files with 7 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ $("#calendar").fullCalendar({
"center": "title",
"right": "prev,next"
},
"weekNumbers": true,
"weekNumbers": Grocy.CalendarShowWeekNumbers,
"firstDay": firstDay,
"eventLimit": true,
"eventSources": fullcalendarEventSources

View File

@@ -84,7 +84,7 @@ Grocy.Components.DateTimePicker.Init = function()
showToday: true,
showClose: true
},
calendarWeeks: true,
calendarWeeks: Grocy.CalendarShowWeekNumbers,
maxDate: limitDate,
locale: moment.locale(),
defaultDate: startDate,