mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
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:
parent
5088739a86
commit
3a875a433d
@ -370,17 +370,27 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
*/
|
||||
_icons: function() {
|
||||
var icons = [];
|
||||
|
||||
|
||||
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')+'"/>');
|
||||
|
Loading…
Reference in New Issue
Block a user