Calendar: Fix js error when selecting a resource in resources finder

This commit is contained in:
Aleksander Machniak 2019-01-31 11:35:51 +00:00
parent e36486a592
commit adb4d9d0f0

View file

@ -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