fixed the backward compatility to old colorIds

This commit is contained in:
Peter 'Pita' Martischka 2011-08-21 18:53:30 +01:00
parent 6c354c6333
commit 4f233d88f8
4 changed files with 14 additions and 8 deletions

View file

@ -741,7 +741,7 @@ function loadBroadcastJS()
for (var author in newAuthorData)
{
var data = newAuthorData[author];
var bgcolor = data.colorId;
var bgcolor = typeof data.colorId == "number" ? clientVars.colorPalette[data.colorId] : data.colorId;
if (bgcolor && dynamicCSS)
{
dynamicCSS.selectorStyle('.' + linestylefilter.getAuthorClassName(author)).backgroundColor = bgcolor;