function rerender_calendar(id, url)
{
// clear all event
$('#' + id).fullCalendar('removeEvents');
// render new event
$('#' + id).fullCalendar('addEventSource', url);
}
References :
javascript - rerendering events in fullCalendar after Ajax database update - Stack Overflow
removeEvents - Documentation | FullCalendar
沒有留言:
張貼留言