2016-09-07 20:10:37 +02:00
|
|
|
|
2016-12-21 18:24:03 +01:00
|
|
|
var conf_editor_v4l2 = null;
|
|
|
|
var conf_editor_fg = null;
|
2016-09-07 20:10:37 +02:00
|
|
|
$(hyperion).one("cmd-config-getschema", function(event) {
|
|
|
|
schema = parsedConfSchemaJSON.properties;
|
2016-12-21 18:24:03 +01:00
|
|
|
conf_editor_fg = createJsonEditor('editor_container_fg', {
|
|
|
|
framegrabber: schema.framegrabber
|
|
|
|
}, true, true);
|
2016-09-07 20:10:37 +02:00
|
|
|
|
2016-12-21 18:24:03 +01:00
|
|
|
$('#btn_submit_fg').off().on('click',function() {
|
|
|
|
requestWriteConfig(conf_editor_fg.getValue());
|
|
|
|
});
|
|
|
|
|
|
|
|
conf_editor_v4l2 = createJsonEditor('editor_container_v4l2', {
|
|
|
|
grabberV4L2 : schema.grabberV4L2
|
|
|
|
}, true, true);
|
2016-09-10 23:30:05 +02:00
|
|
|
|
2016-12-21 18:24:03 +01:00
|
|
|
$('#btn_submit_v4l2').off().on('click',function() {
|
|
|
|
requestWriteConfig(conf_editor_v4l2.getValue());
|
2016-10-10 23:15:50 +02:00
|
|
|
});
|
2016-12-21 18:24:03 +01:00
|
|
|
|
|
|
|
$('#opt_expl_fg').html(createHelpTable(schema.framegrabber.properties, '<i class="fa fa-camera fa-fw"></i>'+$.i18n("edt_conf_fg_heading_title")));
|
|
|
|
$('#opt_expl_v4l2').html(createHelpTable(schema.grabberV4L2.items.properties, '<i class="fa fa-camera fa-fw"></i>'+$.i18n("edt_conf_v4l2_heading_title")));
|
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();
|
|
|
|
});
|
|
|
|
|