webui: initial support for leddevice options (#232)

* initial support for leddevice options

* fix schema and editor init

* fix led editor labels and schema

* add some led schemas

* led config: insert current values. not yet perfect, but it works
This commit is contained in:
redPanther
2016-09-10 19:08:08 +02:00
committed by GitHub
parent 678624c959
commit 2d88cdc2d3
16 changed files with 191 additions and 22 deletions

View File

@@ -15,10 +15,6 @@ $(document).ready( function() {
//Change all Checkboxes to Switches
$("[type='checkbox']").bootstrapSwitch();
$(hyperion).on("open",function(event){
requestServerInfo();
});
$(hyperion).on("cmd-serverinfo",function(event){
parsedServerInfoJSON = event.response;
currentVersion = parsedServerInfoJSON.info.hyperion[0].version;
@@ -57,9 +53,20 @@ $(document).ready( function() {
});
}); // end cmd-serverinfo
$(hyperion).one("cmd-config-getschema", function(event) {
parsedConfSchemaJSON = event.response.result;
});
$(hyperion).on("error",function(event){
showErrorDialog("error", event.reason);
});
$(hyperion).on("open",function(event){
requestServerConfigSchema();
requestServerInfo();
});
});
$(function(){