mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
added a colorPicker
This commit is contained in:
parent
5d30c8b4a5
commit
9d37d91ce1
8 changed files with 594 additions and 51 deletions
|
@ -741,13 +741,10 @@ function loadBroadcastJS()
|
|||
for (var author in newAuthorData)
|
||||
{
|
||||
var data = newAuthorData[author];
|
||||
if ((typeof data.colorId) == 'number')
|
||||
var bgcolor = data.colorId;
|
||||
if (bgcolor && dynamicCSS)
|
||||
{
|
||||
var bgcolor = clientVars.colorPalette[data.colorId];
|
||||
if (bgcolor && dynamicCSS)
|
||||
{
|
||||
dynamicCSS.selectorStyle('.' + linestylefilter.getAuthorClassName(author)).backgroundColor = bgcolor;
|
||||
}
|
||||
dynamicCSS.selectorStyle('.' + linestylefilter.getAuthorClassName(author)).backgroundColor = bgcolor;
|
||||
}
|
||||
authorData[author] = data;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue