Vote count:
0
I have this script to refresh the events of the full calender. When i initially setup, i do this
var events={};
$('#calendar').fullCalendar({
theme: true,
header: {
left: 'prev,next today',
center: 'title',right: 'month,
agendaWeek,agendaDay'
},
defaultDate: '2014-01-12', editable: true,eventSources: events
});
then later i do this
events=[
{title: 'Event 1',start: '2014-01-01','2014-01-01'},
{title: 'Event 2',start: '2014-03-01','2014-06-01'},
{title: 'Event 3',start: '2014-01-03','2014-02-03'},
{title: 'Event 4',start: '2014-04-01','2014-04-02'},
{title: 'Event 5',start: '2014-04-01','2014-05-01'},
{title: 'Event 6',start: '2014-01-05','2014-01-01'}
];
$('#calendar').fullCalendar( 'refetchEvents' );
but the calender does not render the events
asked 42 secs ago
Aucun commentaire:
Enregistrer un commentaire