mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
2ccdfeb9e1
- Increases linker performance under Linux builds by using Gold linker, if available - ccache is used if available - removed statistic class (Stats.cpp) from project due to the missing result (sorry @Brindosch) - add LGTM bandges for code analysis overview Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
30 lines
865 B
JavaScript
30 lines
865 B
JavaScript
$(document).ready( function() {
|
|
performTranslation();
|
|
|
|
var conf_editor = null;
|
|
|
|
$('#conf_cont').append(createOptPanel('fa-wrench', $.i18n("edt_conf_webc_heading_title"), 'editor_container', 'btn_submit'));
|
|
if(window.showOptHelp)
|
|
{
|
|
$('#conf_cont').append(createHelpTable(window.schema.webConfig.properties, $.i18n("edt_conf_webc_heading_title")));
|
|
}
|
|
|
|
conf_editor = createJsonEditor('editor_container', {
|
|
webConfig : window.schema.webConfig
|
|
}, true, true);
|
|
|
|
conf_editor.on('change',function() {
|
|
conf_editor.validate().length ? $('#btn_submit').attr('disabled', true) : $('#btn_submit').attr('disabled', false);
|
|
});
|
|
|
|
$('#btn_submit').off().on('click',function() {
|
|
requestWriteConfig(conf_editor.getValue());
|
|
});
|
|
|
|
if(window.showOptHelp)
|
|
createHint("intro", $.i18n('conf_webconfig_label_intro'), "editor_container");
|
|
|
|
removeOverlay();
|
|
});
|
|
|