From adb4d9d0f02fb2dcbe2c9aed02a38cb20aeb8478 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 31 Jan 2019 11:35:51 +0000 Subject: [PATCH] Calendar: Fix js error when selecting a resource in resources finder --- plugins/calendar/calendar_ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js index 1253e0d6..8b15c75c 100644 --- a/plugins/calendar/calendar_ui.js +++ b/plugins/calendar/calendar_ui.js @@ -2086,7 +2086,7 @@ function rcube_calendar_ui(settings) rcmail.enable_command('add-resource', false); $(rcmail.gui_objects.resourceinfo).hide(); $(rcmail.gui_objects.resourceownerinfo).hide(); - $(rcmail.gui_objects.resourceinfocalendar).fullCalendar('removeEventSource', resources_events_source); + $(rcmail.gui_objects.resourceinfocalendar).fullCalendar('removeEventSources'); } }); @@ -2162,7 +2162,7 @@ function rcube_calendar_ui(settings) } $(rcmail.gui_objects.resourceownerinfo).hide(); - $(rcmail.gui_objects.resourceinfocalendar).fullCalendar('removeEventSource', resources_events_source); + $(rcmail.gui_objects.resourceinfocalendar).fullCalendar('removeEventSources'); if (resource.owner) { // display cached data