mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
split movie scripts
This commit is contained in:
parent
41a15fa8b3
commit
682a643ba6
8 changed files with 111 additions and 153 deletions
|
@ -60,7 +60,6 @@
|
|||
|
||||
})).trigger('create');
|
||||
|
||||
updateFilterControls(page);
|
||||
var trigger = false;
|
||||
|
||||
if (view == "List") {
|
||||
|
@ -146,32 +145,11 @@
|
|||
});
|
||||
}
|
||||
|
||||
function updateFilterControls(page) {
|
||||
window.MoviesPage.renderGenresTab = function (page, tabContent) {
|
||||
|
||||
}
|
||||
|
||||
$(document).on('pageinitdepends', "#moviesPage", function () {
|
||||
|
||||
var page = this;
|
||||
var index = 4;
|
||||
|
||||
$(page.querySelector('neon-animated-pages')).on('tabchange', function () {
|
||||
|
||||
if (parseInt(this.selected) == index) {
|
||||
|
||||
var tabContent = page.querySelector('.pageTabContent[data-index=\'' + index + '\']');
|
||||
if (!tabContent.initComplete) {
|
||||
tabContent.initComplete = true;
|
||||
}
|
||||
|
||||
if (LibraryBrowser.needsRefresh(tabContent)) {
|
||||
reloadItems(tabContent);
|
||||
updateFilterControls();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
if (LibraryBrowser.needsRefresh(tabContent)) {
|
||||
reloadItems(tabContent);
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery, document);
|
Loading…
Add table
Add a link
Reference in a new issue