Fixed Broken Calendar with the update of Fullcalendar.js

This commit is contained in:
johnny@pittpc.com
2021-03-23 23:56:41 -04:00
parent 5a04dc6633
commit 28db6856ff
3 changed files with 93 additions and 96 deletions

View File

@@ -37,7 +37,6 @@ while($row = mysqli_fetch_array($sql)){
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
plugins: [ 'bootstrap', 'dayGrid', 'timeGrid', 'list' ],
themeSystem: 'bootstrap',
defaultView: 'dayGridMonth',
customButtons: {
@@ -54,10 +53,10 @@ while($row = mysqli_fetch_array($sql)){
}
}
},
header: {
headerToolbar: {
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay,listMonth addEvent addCalendar '
right: 'dayGridMonth,timeGridWeek,timeGridDay,listMonth addEvent addCalendar'
},
events: [
<?php
@@ -83,4 +82,4 @@ while($row = mysqli_fetch_array($sql)){
calendar.render();
});
</script>
</script>