2016-09-07 20:10:37 +02:00
|
|
|
|
|
|
|
|
2016-10-09 10:23:04 +02:00
|
|
|
var conf_editor = null;
|
2016-09-07 20:10:37 +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', {
|
|
|
|
framegrabber: schema.framegrabber,
|
|
|
|
grabberV4L2 : schema.grabberV4L2
|
|
|
|
}, true);
|
2016-09-07 20:10:37 +02:00
|
|
|
|
2016-09-10 23:30:05 +02:00
|
|
|
|
2016-10-10 23:15:50 +02:00
|
|
|
$('#btn_submit').off().on('click',function() {
|
|
|
|
requestWriteConfig(conf_editor.getValue());
|
|
|
|
});
|
2016-09-07 20:10:37 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready( function() {
|
2016-12-04 19:32:23 +01:00
|
|
|
performTranslation();
|
2016-09-07 20:10:37 +02:00
|
|
|
requestServerConfigSchema();
|
|
|
|
});
|
|
|
|
|