mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
enable unified routing
This commit is contained in:
parent
2360213901
commit
154f6b5fd8
133 changed files with 6988 additions and 7112 deletions
|
@ -1,4 +1,4 @@
|
|||
(function ($, document) {
|
||||
define(['libraryBrowser'], function (LibraryBrowser) {
|
||||
|
||||
var defaultFirstSection = 'smalllibrarytiles';
|
||||
|
||||
|
@ -264,13 +264,12 @@
|
|||
method = 'renderUpcoming';
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
require(depends, function () {
|
||||
|
||||
window[scope][method](page, tabContent);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -281,7 +280,7 @@
|
|||
var tabs = page.querySelector('paper-tabs');
|
||||
var pages = page.querySelector('neon-animated-pages');
|
||||
|
||||
LibraryBrowser.configurePaperLibraryTabs(page, tabs, pages, 'index.html');
|
||||
LibraryBrowser.configurePaperLibraryTabs(page, tabs, pages, 'home.html');
|
||||
|
||||
pages.addEventListener('tabchange', function (e) {
|
||||
loadTab(page, parseInt(e.target.selected));
|
||||
|
@ -301,7 +300,6 @@
|
|||
});
|
||||
|
||||
pageIdOn('pageshow', "indexPage", function () {
|
||||
|
||||
var page = this;
|
||||
Events.on(MediaController, 'playbackstop', onPlaybackStop);
|
||||
});
|
||||
|
@ -331,4 +329,4 @@
|
|||
renderHomeTab: loadHomeTab
|
||||
};
|
||||
|
||||
})(jQuery, document);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue