summaryrefslogtreecommitdiff
path: root/plugins/calendar/drivers
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-06-26 15:42:32 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-06-26 15:42:32 (GMT)
commitab43057b1fa5104da744fc2deb6264d0524d2965 (patch)
tree404b79fcd2fdd9200c03ded2816820e8334f3e8c /plugins/calendar/drivers
parent30c684026953722e48052eae387ec53bcdabc7dd (diff)
downloadroundcubemail-plugins-kolab-ab43057b1fa5104da744fc2deb6264d0524d2965.tar.gz
Implement quickview for calendars, showing free-busy data for other user's calendars (#3043)
Diffstat (limited to 'plugins/calendar/drivers')
-rw-r--r--plugins/calendar/drivers/kolab/kolab_user_calendar.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/calendar/drivers/kolab/kolab_user_calendar.php b/plugins/calendar/drivers/kolab/kolab_user_calendar.php
index c52bfd7..bcfc772 100644
--- a/plugins/calendar/drivers/kolab/kolab_user_calendar.php
+++ b/plugins/calendar/drivers/kolab/kolab_user_calendar.php
@@ -210,8 +210,10 @@ class kolab_user_calendar extends kolab_calendar
}
}
- // get events from the user's free/busy feed
- $this->fetch_freebusy($limit_changed);
+ // get events from the user's free/busy feed (for quickview only)
+ if (!empty($_REQUEST['_quickview']) && empty($search)) {
+ $this->fetch_freebusy($limit_changed);
+ }
$events = array();
foreach ($this->events as $id => $event) {
@@ -281,7 +283,7 @@ class kolab_user_calendar extends kolab_calendar
// console('_fetch_freebusy', kolab_storage::get_freebusy_url($this->userdata['mail']), $fbdata);
- // parse free-busy information using Horde classes
+ // parse free-busy information
$count = 0;
if ($fbdata) {
$ical = $this->cal->get_ical();
@@ -304,6 +306,7 @@ class kolab_user_calendar extends kolab_calendar
'start' => $from,
'end' => $to,
'free_busy' => $statusmap[$type] ?: 'busy',
+ 'className' => 'fc-type-freebusy',
'organizer' => array(
'email' => $this->userdata['mail'],
'name' => $this->userdata['displayname'],