Fix display of category of events

Fixes #2703
This commit is contained in:
Francis Lachapelle
2014-04-10 12:25:42 -04:00
parent d200629b01
commit c345fc2b8d
2 changed files with 4 additions and 2 deletions

View File

@@ -1794,10 +1794,11 @@ function newBaseEventDIV(eventRep, event, eventText) {
createElement("img", null, null, {src: ResourcesURL + "/alarm.png"}, null, iconSpan);
if (event[10] != null) {
var categoryStyle = categoriesStyles.get(event[10]);
var category = event[10].decodeEntities();
var categoryStyle = categoriesStyles.get(category);
if (!categoryStyle) {
categoryStyle = 'category_' + categoriesStyles.keys().length;
categoriesStyles.set([event[10]], categoryStyle);
categoriesStyles.set([category], categoryStyle);
}
innerDiv.addClassName(categoryStyle);
}