diff --git a/dashboard-ui/scripts/wizardservice.js b/dashboard-ui/scripts/wizardservice.js new file mode 100644 index 0000000000..c993ee32b6 --- /dev/null +++ b/dashboard-ui/scripts/wizardservice.js @@ -0,0 +1,13 @@ +(function ($, document) { + + $(document).on('pageinit', "#wizardServicePage", function () { + + var page = this; + + $('#btnNextPage', page).on('click', function () { + + Dashboard.navigate('wizardfinish.html'); + }); + }); + +})(jQuery, document, window); diff --git a/dashboard-ui/scripts/wizardsettings.js b/dashboard-ui/scripts/wizardsettings.js index 4eb3464a3e..aed491c104 100644 --- a/dashboard-ui/scripts/wizardsettings.js +++ b/dashboard-ui/scripts/wizardsettings.js @@ -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; diff --git a/dashboard-ui/wizardservice.html b/dashboard-ui/wizardservice.html new file mode 100644 index 0000000000..9b1d408afd --- /dev/null +++ b/dashboard-ui/wizardservice.html @@ -0,0 +1,28 @@ + + + + Media Browser + + +
+ +
+ +
+

+ Windows Service

+ +

A Windows Service has been installed.

+ +

Media Browser Server normally runs as a desktop application with a tray icon, but if you prefer to run it as a background service, it can be started from the windows services control panel instead.

+ +
+ + +
+
+ +
+
+ +