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', {
|
|
|
|
kodiVideoChecker: schema.kodiVideoChecker
|
|
|
|
}, true);
|
2016-10-09 10:23:04 +02:00
|
|
|
|
|
|
|
$('#editor_container h3').remove();
|
|
|
|
|
2016-10-10 23:15:50 +02:00
|
|
|
$('#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();
|
|
|
|
});
|
|
|
|
|