Hide participants for private events

This commit is contained in:
Nathan Gray 2016-04-26 20:13:14 +00:00
parent 523edb57c3
commit 42ac5b8a08
2 changed files with 6 additions and 2 deletions

View File

@ -418,6 +418,8 @@ class calendar_uilist extends calendar_ui
if ($is_private)
{
$event['class'] .= 'rowNoView ';
// Hide participants for private events
$event['parts'] = '';
}
$event['app'] = 'calendar';

View File

@ -503,8 +503,10 @@ var et2_calendar_event = (function(){ "use strict"; return et2_valueWidget.exten
'<p style="margin: 2px 0px;">'+times+'</p>'+
(this.options.value.location ? '<p><span class="calendar_calEventLabel">'+this.egw().lang('Location') + '</span>:' + this.options.value.location+'</p>' : '')+
(cat_label ? '<p><span class="calendar_calEventLabel">'+this.egw().lang('Category') + '</span>:' + cat_label +'</p>' : '')+
'<p><span class="calendar_calEventLabel">'+this.egw().lang('Participants')+'</span>:<br />'+
(this.options.value.parts ? this.options.value.parts.replace("\n","<br />"):'')+'</p>'+
(this.options.value.parts ?
'<p><span class="calendar_calEventLabel">'+this.egw().lang('Participants')+'</span>:<br />'+
this.options.value.parts.replace("\n","<br />")+'</p>':''
)+
'</div>'+
'</div>';
},