2016-10-10 23:15:50 +02:00
|
|
|
var conf_editor = null;
|
2016-10-09 10:23:04 +02:00
|
|
|
$(hyperion).one("cmd-config-getschema", function(event) {
|
|
|
|
schema = parsedConfSchemaJSON.properties;
|
2016-10-10 23:15:50 +02:00
|
|
|
conf_editor = createJsonEditor('editor_container', {
|
|
|
|
effects : schema.effects,
|
|
|
|
initialEffect : schema.initialEffect
|
|
|
|
}, true);
|
2016-10-09 10:23:04 +02:00
|
|
|
|
|
|
|
$('#btn_submit').off().on('click',function() {
|
2016-10-10 23:15:50 +02:00
|
|
|
requestWriteConfig(conf_editor.getValue());
|
2016-10-09 10:23:04 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$(document).ready( function() {
|
|
|
|
requestServerConfigSchema();
|
|
|
|
//$("[type='checkbox']").bootstrapSwitch();
|
|
|
|
});
|