this is my fullcalendar definition:
$('#modal_calendar').on('shown.bs.modal', function () {
$('[data-toggle="calendar"]').fullCalendar({
themeSystem: 'bootstrap4',
locale: 'es',
monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],
monthNamesShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],
dayNames: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'],
dayNamesShort: ['Dom', 'Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb'],
header: {
left: 'title',
center: '',
right: 'prev,next today'
},
buttonText: {
today: 'Hoy',
month: 'Mes',
week: 'Semana',
day: 'Día'
},
events: '/my/url',
lazyFetching: false
});
});
I am loading the full calendar when a modal dialog appears. Note the lazyFetching = false
. I need the events to be retrieved always.
When I load the page and open the modal dialog box, the /my/url
url is called, so calendar shows the events correctly. The problem I am having is that when I close the dialog box, change some event and then open the dialog box again, the /my/url
url is not called again to show the change. It is called when I change month by mean of the fullcalendar navigation buttons.
Any help?