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
|
2016-12-21 18:24:03 +01:00
|
|
|
}, true, true);
|
2016-10-09 10:23:04 +02:00
|
|
|
|
2016-10-10 23:15:50 +02:00
|
|
|
$('#btn_submit').off().on('click',function() {
|
|
|
|
requestWriteConfig(conf_editor.getValue());
|
|
|
|
});
|
2016-12-21 18:24:03 +01:00
|
|
|
|
2017-01-04 10:55:10 +01:00
|
|
|
if(showOptHelp)
|
|
|
|
$('#opt_expl').html(createHelpTable(schema.kodiVideoChecker.properties, '<i class="fa fa-info-circle fa-fw"></i>'+$.i18n("conf_kodi_label_title")+' '+$.i18n("conf_helptable_expl")));
|
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();
|
2016-12-21 18:24:03 +01:00
|
|
|
|
2016-10-09 10:23:04 +02:00
|
|
|
});
|
|
|
|
|