clarifying comments

This commit is contained in:
Thijs Wenker 2019-01-07 21:08:41 +01:00
parent 7d9cad3e8e
commit 7823b3d4a3

View file

@ -2159,6 +2159,7 @@ function createColorProperty(property, elProperty) {
"b": elNumberB.elInput.value
});
// Set the color picker active after setting the color, otherwise an update will be sent on open.
$(colorPickerID).attr('active', 'true');
},
onHide: function(colpick) {
@ -3355,6 +3356,8 @@ function loaded() {
propertyValue.green + "," +
propertyValue.blue + ")";
if ($(property.elColorPicker).attr('active') === 'true') {
// Set the color picker inactive before setting the color,
// otherwise an update will be sent directly after setting it here.
$(property.elColorPicker).attr('active', 'false');
colorPickers['#' + property.elementID].colpickSetColor({
"r": propertyValue.red,