mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Handle multiple categories, though the last one determines the color of the event.
This commit is contained in:
parent
e45b6471e7
commit
edc3cac79f
@ -204,7 +204,11 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM],
|
|||||||
this.options.class = event.class;
|
this.options.class = event.class;
|
||||||
if(event.category)
|
if(event.category)
|
||||||
{
|
{
|
||||||
this.div.addClass('cat_' + event.category);
|
var cats = event.category.split(',');
|
||||||
|
for(var i = 0; i < cats.length; i++)
|
||||||
|
{
|
||||||
|
this.div.addClass('cat_' + cats[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.div.toggleClass('calendar_calEventUnknown', event.participants[egw.user('account_id')] ? event.participants[egw.user('account_id')][0] === 'U' : false);
|
this.div.toggleClass('calendar_calEventUnknown', event.participants[egw.user('account_id')] ? event.participants[egw.user('account_id')][0] === 'U' : false);
|
||||||
|
Loading…
Reference in New Issue
Block a user