mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
fixed the backward compatility to old colorIds
This commit is contained in:
parent
6c354c6333
commit
4f233d88f8
4 changed files with 14 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue