2016-10-09 10:23:04 +02:00
|
|
|
|
|
|
|
var conf_editor = null;
|
|
|
|
$(hyperion).one("cmd-config-getschema", function(event) {
|
|
|
|
schema = parsedConfSchemaJSON.properties;
|
2016-10-10 23:15:50 +02:00
|
|
|
conf_editor = createJsonEditor('editor_container', {
|
|
|
|
jsonServer : schema.jsonServer,
|
|
|
|
protoServer : schema.protoServer,
|
|
|
|
boblightServer : schema.boblightServer,
|
|
|
|
udpListener : schema.udpListener,
|
|
|
|
forwarder : schema.forwarder,
|
|
|
|
}, true);
|
|
|
|
|
|
|
|
$('#btn_submit').off().on('click',function() {
|
|
|
|
requestWriteConfig(conf_editor.getValue());
|
|
|
|
});
|
2016-10-09 10:23:04 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready( function() {
|
2016-12-04 19:32:23 +01:00
|
|
|
performTranslation();
|
2016-10-09 10:23:04 +02:00
|
|
|
requestServerConfigSchema();
|
|
|
|
});
|
|
|
|
|