1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

added automatic restart option

This commit is contained in:
Luke Pulverenti 2014-01-11 15:13:18 -05:00
parent fa461c249c
commit eb07d62734
4 changed files with 24 additions and 6 deletions

View file

@ -15,6 +15,13 @@
} else {
$('#fldRunAtStartup', page).hide();
}
$('#chkEnableAutomaticRestart', page).checked(config.EnableAutomaticRestart).checkboxradio("refresh");
if (systemInfo.CanSelfRestart) {
$('#fldEnableAutomaticRestart', page).show();
} else {
$('#fldEnableAutomaticRestart', page).hide();
}
$('#selectAutomaticUpdateLevel', page).val(config.SystemUpdateLevel).selectmenu('refresh').trigger('change');
$('#chkDebugLog', page).checked(config.EnableDebugLevelLogging).checkboxradio("refresh");
@ -130,6 +137,7 @@
config.RunAtStartup = $('#chkRunAtStartup', form).checked();
config.SystemUpdateLevel = $('#selectAutomaticUpdateLevel', form).val();
config.EnableAutomaticRestart = $('#chkEnableAutomaticRestart', form).checked();
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
});