Changes to event icons:

- Show private flag to users who can see the data
- Include app icon for other app entries
This commit is contained in:
Nathan Gray 2015-11-23 23:32:45 +00:00
parent 5088739a86
commit 3a875a433d

View File

@ -373,14 +373,24 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM],
if(this.options.value.is_private)
{
// Hide everything
icons.push('<img src="'+this.egw().image('private','calendar')+'"/>');
}
else
{
if(this.options.value.app !== 'calendar')
{
icons.push('<img src="'+this.egw().image('navbar',this.options.value.app)+'" title="'+this.egw().lang(this.options.value.app)+'"/>');
}
if(this.options.value.priority == 3)
{
icons.push('<img src="'+this.egw().image('high','calendar')+'" title="'+this.egw().lang('high priority')+'"/>');
}
if(this.options.value.public == '0')
{
// Show private flag
icons.push('<img src="'+this.egw().image('private','calendar')+'"/>');
}
if(this.options.value['recur_type'])
{
icons.push('<img src="'+this.egw().image('recur','calendar')+'" title="'+this.egw().lang('recurring event')+'"/>');