mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Fix broken pages
This commit is contained in:
parent
4aa0ef4936
commit
e9b97185b8
@ -69,27 +69,31 @@ class AppRouter {
|
||||
}
|
||||
|
||||
showLocalLogin(serverId) {
|
||||
this.show('login.html?serverid=' + serverId);
|
||||
Dashboard.navigate('login.html?serverid=' + serverId);
|
||||
}
|
||||
|
||||
showVideoOsd() {
|
||||
return Dashboard.navigate('video');
|
||||
}
|
||||
|
||||
showSelectServer() {
|
||||
this.show(AppInfo.isNativeApp ? 'selectserver.html' : 'login.html');
|
||||
Dashboard.navigate(AppInfo.isNativeApp ? 'selectserver.html' : 'login.html');
|
||||
}
|
||||
|
||||
showWelcome() {
|
||||
this.show(AppInfo.isNativeApp ? 'selectserver.html' : 'login.html');
|
||||
Dashboard.navigate(AppInfo.isNativeApp ? 'selectserver.html' : 'login.html');
|
||||
}
|
||||
|
||||
showSettings() {
|
||||
this.show('mypreferencesmenu.html');
|
||||
Dashboard.navigate('mypreferencesmenu.html');
|
||||
}
|
||||
|
||||
showNowPlaying() {
|
||||
this.show('/nowplaying.html');
|
||||
this.show('queue');
|
||||
}
|
||||
|
||||
beginConnectionWizard() {
|
||||
backdrop.clear();
|
||||
backdrop.clearBackdrop();
|
||||
loading.show();
|
||||
connectionManager.connect({
|
||||
enableAutoLogin: appSettings.enableAutoLogin()
|
||||
@ -231,7 +235,7 @@ class AppRouter {
|
||||
}
|
||||
|
||||
if (level === 'full' || level === 2) {
|
||||
backdrop.clear(true);
|
||||
backdrop.clearBackdrop(true);
|
||||
document.documentElement.classList.add('transparentDocument');
|
||||
this.backgroundContainer.classList.add('backgroundContainer-transparent');
|
||||
this.backdropContainer.classList.add('hide');
|
||||
@ -628,27 +632,27 @@ class AppRouter {
|
||||
}
|
||||
|
||||
showGuide() {
|
||||
this.show('livetv.html?tab=1');
|
||||
Dashboard.navigate('livetv.html?tab=1');
|
||||
}
|
||||
|
||||
goHome() {
|
||||
this.show('home.html');
|
||||
Dashboard.navigate('home.html');
|
||||
}
|
||||
|
||||
showSearch() {
|
||||
this.show('search.html');
|
||||
Dashboard.navigate('search.html');
|
||||
}
|
||||
|
||||
showLiveTV() {
|
||||
this.show('livetv.html');
|
||||
Dashboard.navigate('livetv.html');
|
||||
}
|
||||
|
||||
showRecordedTV() {
|
||||
this.show('livetv.html?tab=3');
|
||||
Dashboard.navigate('livetv.html?tab=3');
|
||||
}
|
||||
|
||||
showFavorites() {
|
||||
this.show('home.html?tab=1');
|
||||
Dashboard.navigate('home.html?tab=1');
|
||||
}
|
||||
|
||||
setTitle(title) {
|
||||
|
@ -822,8 +822,8 @@ function tryRemoveElement(elem) {
|
||||
}
|
||||
});
|
||||
|
||||
if (self._currentPlayOptions.fullscreen) {
|
||||
appRouter.show('videoosd.html').then(this.onNavigatedToOsd);
|
||||
if (this._currentPlayOptions.fullscreen) {
|
||||
appRouter.showVideoOsd().then(this.onNavigatedToOsd);
|
||||
} else {
|
||||
appRouter.setTransparency('backdrop');
|
||||
this.#videoDialog.classList.remove('videoPlayerContainer-onTop');
|
||||
|
@ -106,7 +106,7 @@ function onPlaying(instance, playOptions, resolve) {
|
||||
instance.timeUpdateInterval = setInterval(onTimeUpdate.bind(instance), 500);
|
||||
|
||||
if (playOptions.fullscreen) {
|
||||
appRouter.show('videoosd.html').then(function () {
|
||||
appRouter.showVideoOsd().then(function () {
|
||||
instance.videoDialog.classList.remove('onTop');
|
||||
});
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user