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

fixes #156 - Allow server to run as a service

This commit is contained in:
Luke Pulverenti 2013-09-30 11:41:18 -04:00
parent 5aea7b2c6a
commit 90aef42513
3 changed files with 58 additions and 2 deletions

View file

@ -29,11 +29,11 @@
config.SaveLocalMeta = $('#chkSaveLocalMetadata', page).checked();
config.EnableVideoImageExtraction = $('#chkVIdeoImages', page).checked();
ApiClient.updateServerConfiguration(config).done(function(result) {
ApiClient.updateServerConfiguration(config).done(function (result) {
Dashboard.processServerConfigurationUpdateResult(result);
Dashboard.navigate('wizardfinish.html');
navigateToNextPage();
});
});
@ -44,6 +44,21 @@
}
function navigateToNextPage() {
ApiClient.getSystemInfo().done(function (systemInfo) {
var os = systemInfo.OperatingSystem.toLowerCase();
if (os.indexOf('windows') != -1) {
Dashboard.navigate('wizardservice.html');
} else {
Dashboard.navigate('wizardfinish.html');
}
});
}
$(document).on('pageinit', "#wizardSettingsPage", function () {
var page = this;