vendor/assets/javascripts/gcal.js in fullcalendar-wrapper-rails-2.6.0 vs vendor/assets/javascripts/gcal.js in fullcalendar-wrapper-rails-2.9.1

- old
+ new

@@ -1,9 +1,9 @@ /*! - * FullCalendar v2.6.0 Google Calendar Plugin - * Docs & License: http://fullcalendar.io/ - * (c) 2015 Adam Shaw + * <%= meta.title %> v<%= meta.version %> Google Calendar Plugin + * Docs & License: <%= meta.homepage %> + * (c) <%= meta.copyright %> */ (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,