| Issue 350: | Bug removing event source from Google Calendar? | |
| 4 people starred this issue and may be notified of changes. | Back to list |
I am trying to remove an event source that I have already added (it appears
on calendar), but I can't seem to get the correct reference to
removeEventSource (or it isn't working properly).
The code I used to add the events:
$('#calendar').fullCalendar('addEventSource',$.fullCalendar.gcalFeed(source);
And the code I'm using to try to remove it:
$('#calendar').fullCalendar('removeEventSource',$.fullCalendar.gcalFeed(source);
Jun 25, 2010
Hi Adam, First of all, great job on the calendar, but if this could be updated in the documentation that would be great. I've been looking for this solution for many days and only just stumbled on this entry. Thanks :-) Ben
Apr 21, 2011
is this still valid? var gcal = $.fullCalendar.gcalFeed(source); I've been tearing my hear out with this same problem. The first time i load a view if i navigate to a different view say day -> month or week it doesn't clear the previous events so i see duplicates. Then if i navigate a 2nd time it clears them correctly. So is gcalFeed still valid?
Apr 21, 2011
I finally got it working! I have no idea why but i needed to swap around addEventSource and removeEventSource. here is example of what i was trying to do: http://dev2.mycmo.com.au/fullcalendar/calendar_problem_demo.php |
|
| ► Sign in to add a comment |
here is what it means to have the same reference: var gcal = $.fullCalendar.gcalFeed(source); // the reference $('#calendar').fullCalendar('addEventSource', gcal); $('#calendar').fullCalendar('removeEventSource', gcal); sorry, this should be more clear in the docs