Disable the freebusy UI if no kolab_freebusy_server is configured
Differential Revision: https://git.kolab.org/D3962
This commit is contained in:
parent
251d4e367a
commit
ee732ffb07
3 changed files with 11 additions and 1 deletions
|
@ -783,6 +783,8 @@ function rcube_calendar_ui(settings)
|
|||
$('#edit-identities-list').val(identity_id);
|
||||
$('#edit-attendees-form')[(allow_invitations?'show':'hide')]();
|
||||
$('#edit-attendee-schedule')[(calendar.freebusy?'show':'hide')]();
|
||||
$('#event-panel-attendees #edit-attendees-legend')[(calendar.freebusy?'show':'hide')]();
|
||||
$('#edit-attendees-table th.availability')[(calendar.freebusy?'show':'hide')]();
|
||||
};
|
||||
|
||||
// attachments
|
||||
|
@ -1955,7 +1957,7 @@ function rcube_calendar_ui(settings)
|
|||
var avail_tag = elastic ? ('<span class="' + avail + '"') : ('<img alt="" src="' + img_src + '" class="availabilityicon ' + avail + '"');
|
||||
var html = '<td class="role">' + select + '</td>' +
|
||||
'<td class="name"><span class="attendee-name">' + dispname + '</span></td>' +
|
||||
'<td class="availability">' + avail_tag + ' data-email="' + data.email + '" /></td>' +
|
||||
(calendar.freebusy ? '<td class="availability">' + avail_tag + ' data-email="' + data.email + '" /></td>' : '') +
|
||||
'<td class="confirmstate"><span class="attendee ' + (status || 'organizer') + '" title="' + Q(tooltip) + '">' + Q(status && !elastic ? status_label : '') + '</span></td>' +
|
||||
(data.cutype != 'RESOURCE' ? '<td class="invite">' + (organizer || readonly || !invbox ? '' : invbox) + '</td>' : '') +
|
||||
'<td class="options">' + (organizer || readonly ? '' : dellink) + '</td>';
|
||||
|
|
|
@ -58,6 +58,10 @@ class caldav_driver extends kolab_driver
|
|||
|
||||
// $this->freebusy_trigger = $this->rc->config->get('calendar_freebusy_trigger', false);
|
||||
|
||||
if (!$this->rc->config->get('kolab_freebusy_server', false)) {
|
||||
$this->freebusy = false;
|
||||
}
|
||||
|
||||
// TODO: get configuration for the Bonnie API
|
||||
// $this->bonnie_api = libkolab::get_bonnie_api();
|
||||
}
|
||||
|
|
|
@ -66,6 +66,10 @@ class kolab_driver extends calendar_driver
|
|||
|
||||
$this->freebusy_trigger = $this->rc->config->get('calendar_freebusy_trigger', false);
|
||||
|
||||
if (!$this->rc->config->get('kolab_freebusy_server', false)) {
|
||||
$this->freebusy = false;
|
||||
}
|
||||
|
||||
if (kolab_storage::$version == '2.0') {
|
||||
$this->alarm_types = ['DISPLAY'];
|
||||
$this->alarm_absolute = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue