Style needs-action/declined events with opacity when invitation calendars are disabled (Bifrost#T38400)
This commit is contained in:
parent
16a71fccdc
commit
74ee354f85
3 changed files with 15 additions and 2 deletions
|
@ -725,9 +725,18 @@ class kolab_calendar extends kolab_storage_folder_api
|
|||
$record['links'] = $this->get_links($record['uid']);
|
||||
}
|
||||
|
||||
if ($this->get_namespace() == 'other') {
|
||||
$ns = $this->get_namespace();
|
||||
|
||||
if ($ns == 'other') {
|
||||
$record['className'] = 'fc-event-ns-other';
|
||||
$record = kolab_driver::add_partstat_class($record, array('NEEDS-ACTION','DECLINED'), $this->get_owner());
|
||||
}
|
||||
|
||||
if ($ns == 'other' || !$this->cal->rc->config->get('kolab_invitation_calendars')) {
|
||||
$record = kolab_driver::add_partstat_class($record, array('NEEDS-ACTION', 'DECLINED'), $this->get_owner());
|
||||
|
||||
// Modify invitation status class name, when invitation calendars are disabled
|
||||
// we'll use opacity only for declined/needs-action events
|
||||
$record['className'] = str_replace('-invitation', '', $record['className']);
|
||||
}
|
||||
|
||||
// add instance identifier to first occurrence (master event)
|
||||
|
|
|
@ -1495,6 +1495,8 @@ span.spacer {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
.fc-needs-action,
|
||||
.fc-declined,
|
||||
.cal-event-status-cancelled {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
|
|
@ -1945,6 +1945,8 @@ a.dropdown-link:after {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
.fc-needs-action,
|
||||
.fc-declined,
|
||||
.cal-event-status-cancelled {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue