Added a "today button" to the calendar (closes #2218)

This commit is contained in:
Bernd Bestel
2023-05-12 20:53:04 +02:00
parent 48564b5286
commit b5d3e68d68
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@
### Calendar ### Calendar
- xxx - Added a button to jump to today (between the prev/next buttons, top right corner)
### Tasks ### Tasks

View File

@@ -9,7 +9,7 @@ var calendar = $("#calendar").fullCalendar({
"header": { "header": {
"left": "month,agendaWeek,agendaDay,listWeek", "left": "month,agendaWeek,agendaDay,listWeek",
"center": "title", "center": "title",
"right": "prev,next" "right": "prev,today,next"
}, },
"weekNumbers": Grocy.CalendarShowWeekNumbers, "weekNumbers": Grocy.CalendarShowWeekNumbers,
"defaultView": ($(window).width() < 768) ? "agendaDay" : "month", "defaultView": ($(window).width() < 768) ? "agendaDay" : "month",