Calendar: Fix js error when selecting a resource in resources finder
This commit is contained in:
parent
e36486a592
commit
adb4d9d0f0
1 changed files with 2 additions and 2 deletions
|
@ -2086,7 +2086,7 @@ function rcube_calendar_ui(settings)
|
||||||
rcmail.enable_command('add-resource', false);
|
rcmail.enable_command('add-resource', false);
|
||||||
$(rcmail.gui_objects.resourceinfo).hide();
|
$(rcmail.gui_objects.resourceinfo).hide();
|
||||||
$(rcmail.gui_objects.resourceownerinfo).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.resourceownerinfo).hide();
|
||||||
$(rcmail.gui_objects.resourceinfocalendar).fullCalendar('removeEventSource', resources_events_source);
|
$(rcmail.gui_objects.resourceinfocalendar).fullCalendar('removeEventSources');
|
||||||
|
|
||||||
if (resource.owner) {
|
if (resource.owner) {
|
||||||
// display cached data
|
// display cached data
|
||||||
|
|
Loading…
Add table
Reference in a new issue