1
0
Fork 0
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:
Luke Pulverenti 2015-08-18 12:11:56 -04:00
parent 41a15fa8b3
commit 682a643ba6
8 changed files with 111 additions and 153 deletions

View file

@ -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);