mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 05:52:38 +02:00
Initialize background color for color picker correctly.
This commit is contained in:
parent
6a218eaca9
commit
5ffb8eba86
1 changed files with 2 additions and 2 deletions
|
@ -208,9 +208,9 @@ function createColorPicker(key) {
|
|||
|
||||
var $colPickContainer = $('<div>', {
|
||||
id: key.toString(),
|
||||
class: "color-box",
|
||||
style: { backgroundColor: "rgb(" + colorObject.red + "," + colorObject.green + "," + colorObject.blue + ")" }
|
||||
class: "color-box"
|
||||
});
|
||||
$colPickContainer.css('background-color', "rgb(" + colorObject.red + "," + colorObject.green + "," + colorObject.blue + ")");
|
||||
container.appendChild($colPickContainer[0]);
|
||||
|
||||
var $li = $('<li>', { class: 'cr object color' });
|
||||
|
|
Loading…
Reference in a new issue