From edc3cac79f207c93ce62d30623b2cbfb45b939cd Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 14 Oct 2015 15:25:29 +0000 Subject: [PATCH] Handle multiple categories, though the last one determines the color of the event. --- calendar/js/et2_widget_event.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/calendar/js/et2_widget_event.js b/calendar/js/et2_widget_event.js index 9659bb88ea..e3e22619a7 100644 --- a/calendar/js/et2_widget_event.js +++ b/calendar/js/et2_widget_event.js @@ -204,7 +204,11 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM], this.options.class = event.class; 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);