My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1439: AddEventSource when calendar contained in div with style="display:none" --> doesn't work
2 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by adr...@barebones.ca, Jun 16, 2012
I would like to call addEventSource while the calendar is not visible. This is not working since when I call rerendEvents, eventually ClearEvents() is invoked, but in that routine the line at 2627: getDaySegmentContainer().empty() fails since getDaySegmentContainer is undefined.

here's a link to the full example: 
http://barebones.ca/fullcalendar%20test/fullcalendarexample.html

Below is a snippet of the code
The error comes about if the div "Content" has "style=display:none"
...

		$('#calendar').fullCalendar({
			header: {			
			},
		});
        
		$('#calendar').fullCalendar ('addEventSource', eventList);
		$('#content').show();
		$('#calendar').fullCalendar ('rerenderEvents');
	});

</script>

</head>
<body>

<div id='content' style="display: none">
	<div id='calendar'></div>
</div>

</body>

Jun 26, 2012
#1 lomeucor...@gmail.com
Thanks for reporting this issue, it solved my problem.

In my case I used the jquery fadein callback to be sure I can rerenderEvents without problems.

$('#calContainer').fadeIn('fast', function() {
   $('#cal').fullCalendar('rerenderEvents');
});
Aug 18, 2013
Project Member #2 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done
Apr 15, 2014
#3 yat.c...@gmail.com
Hi, just wondering if this was supposed to have made it to 1.6.4? It was released 9/1/2013, but I am still getting this error and from the source code, it looks like there's no logic to guard against this.

Related to https://github.com/arshaw/fullcalendar/pull/129




Sign in to add a comment

Powered by Google Project Hosting