mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
fix setting of current value in led controller
This commit is contained in:
parent
2d88cdc2d3
commit
8aff421850
@ -146,13 +146,13 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
values_general = {};
|
values_general = {};
|
||||||
values_specific = {};
|
values_specific = {};
|
||||||
isCurrentDevice = (server.info.ledDevices.active == parsedConfJSON.device.type);
|
isCurrentDevice = (server.info.ledDevices.active == $(this).val());
|
||||||
|
|
||||||
for(var key in parsedConfJSON.device){
|
for(var key in parsedConfJSON.device){
|
||||||
if (key in generalOptions.properties)
|
if (key in generalOptions.properties)
|
||||||
values_general[key] = parsedConfJSON.device[key];
|
values_general[key] = parsedConfJSON.device[key];
|
||||||
};
|
};
|
||||||
grabber_conf_editor.setValue( { "generalOptions" : values_general, "specificOptions" : specificOptions });
|
grabber_conf_editor.getEditor("root.generalOptions").setValue( values_general );
|
||||||
|
|
||||||
if (isCurrentDevice)
|
if (isCurrentDevice)
|
||||||
{
|
{
|
||||||
@ -160,7 +160,7 @@ $(document).ready(function() {
|
|||||||
if (key in specificOptions.properties)
|
if (key in specificOptions.properties)
|
||||||
values_specific[key] = parsedConfJSON.device[key];
|
values_specific[key] = parsedConfJSON.device[key];
|
||||||
};
|
};
|
||||||
grabber_conf_editor.setValue( { "generalOptions" : values_general, "specificOptions" : values_specific });
|
grabber_conf_editor.getEditor("root.specificOptions").setValue( values_specific );
|
||||||
};
|
};
|
||||||
|
|
||||||
if ($(this).val() == "philipshue")
|
if ($(this).val() == "philipshue")
|
||||||
|
Loading…
Reference in New Issue
Block a user