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

update ssdp handler

This commit is contained in:
Luke Pulverenti 2016-10-19 02:27:02 -04:00
parent 63147d64a7
commit 4cad3ad8b0
13 changed files with 80 additions and 143 deletions

View file

@ -2588,13 +2588,6 @@ var AppInfo = {};
anonymous: true
});
defineRoute({
path: '/wizardservice.html',
dependencies: ['dashboardcss'],
autoFocus: false,
anonymous: true
});
defineRoute({
path: '/wizardsettings.html',
dependencies: ['dashboardcss'],

View file

@ -6,7 +6,7 @@
apiClient.getJSON(apiClient.getUrl('Startup/Info')).then(function (info) {
if (info.HasMediaEncoder) {
navigateToService();
Dashboard.navigate('wizardagreement.html');
} else {
Dashboard.navigate('wizardcomponents.html');
@ -14,22 +14,7 @@
});
}
function navigateToService() {
var apiClient = ApiClient;
apiClient.getJSON(apiClient.getUrl('Startup/Info')).then(function (info) {
if (info.SupportsRunningAsService) {
Dashboard.navigate('wizardservice.html');
} else {
Dashboard.navigate('wizardagreement.html');
}
});
}
return {
navigateToComponents: navigateToComponents,
navigateToService: navigateToService
navigateToComponents: navigateToComponents
};
});

View file

@ -1,13 +0,0 @@
define(['jQuery'], function ($) {
$(document).on('pageinit', "#wizardServicePage", function () {
var page = this;
$('#btnNextPage', page).on('click', function () {
Dashboard.navigate('wizardagreement.html');
});
});
});