vendor/assets/javascripts/fullcalendar/gcal.js in fullcalendar-rails-2.6.1.0 vs vendor/assets/javascripts/fullcalendar/gcal.js in fullcalendar-rails-2.8.0.0

- old
+ new

@@ -1,9 +1,9 @@ /*! - * FullCalendar v2.6.1 Google Calendar Plugin + * FullCalendar v2.8.0 Google Calendar Plugin * Docs & License: http://fullcalendar.io/ - * (c) 2015 Adam Shaw + * (c) 2016 Adam Shaw */ (function(factory) { if (typeof define === 'function' && define.amd) { define([ 'jquery' ], factory); @@ -134,13 +134,13 @@ if (data.error) { reportError('Google Calendar API: ' + data.error.message, data.error.errors); } else if (data.items) { $.each(data.items, function(i, entry) { - var url = entry.htmlLink; + var url = entry.htmlLink || null; // make the URLs for each event show times in the correct timezone - if (timezoneArg) { + if (timezoneArg && url !== null) { url = injectQsComponent(url, 'ctz=' + timezoneArg); } events.push({ id: entry.id,