My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2368: removeEventSource with Google Calendar object
1 person starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Nov 2014


Sign in to add a comment
 
Project Member Reported by adamrs...@gmail.com, Nov 20, 2014
Since the gcal v3 api update, something like this will no longer work:

	var source = {
		googleCalendarId: 'usa__en@holiday.calendar.google.com'
	};

	$('#calendar').fullCalendar('addEventSource', source);

	$('#calendar').fullCalendar('removeEventSource', source); // won't work!

The temporary solution is to call removeEventSource with *only* the calendar's ID:

	$('#calendar').fullCalendar('removeEventSource', source.googleCalendarId); // workaround!

The underlying problem should be fixed. Though making it compatible with past FC versions that use old fullcalendar.js but want the newest gcal.js will probably be impossible.
Nov 25, 2014
#1 kyle1...@gmail.com
I believe the fix is in the getSourcePrimitive() method.  Just add source.googleCalendarId and it should work.  Previously a Google Calendar source used 'url' to define what calendar to use. 
Nov 25, 2014
Project Member #2 adamrs...@gmail.com
with v2.2.3 and v 1.6.7, this should work now
Status: Released
Sign in to add a comment

Powered by Google Project Hosting