Reputation: 56
I've been trying to understand why the popover appears empty when I click "+ x events".
I created a jsfiddle wherein I reproduced the error. I used the debug template as the base for this test.
$('#calendar').fullCalendar({
eventLimit: 5, //or any truthy value
...
});
Upvotes: 0
Views: 649
Reputation: 56
After looking at it more, I figured it out. When using fullCalendar with version 2.1.1 the start (and/or) end must be set using moment objects. Then the events appear in the popover.
The right way to declare a event:
events: [
{
start:moment('2014-11-06 22:00','YYYY-MM-DD HH:mm'),
end:moment('2014-11-06 23:00','YYYY-MM-DD HH:mm'),
title:'Test',
allDay:false
}]
Upvotes: 1