mirror of
https://github.com/overte-org/overte.git
synced 2025-06-21 19:00:48 +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>', {
|
var $colPickContainer = $('<div>', {
|
||||||
id: key.toString(),
|
id: key.toString(),
|
||||||
class: "color-box",
|
class: "color-box"
|
||||||
style: { backgroundColor: "rgb(" + colorObject.red + "," + colorObject.green + "," + colorObject.blue + ")" }
|
|
||||||
});
|
});
|
||||||
|
$colPickContainer.css('background-color', "rgb(" + colorObject.red + "," + colorObject.green + "," + colorObject.blue + ")");
|
||||||
container.appendChild($colPickContainer[0]);
|
container.appendChild($colPickContainer[0]);
|
||||||
|
|
||||||
var $li = $('<li>', { class: 'cr object color' });
|
var $li = $('<li>', { class: 'cr object color' });
|
||||||
|
|
Loading…
Reference in a new issue