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

split up home page scripts

This commit is contained in:
Luke Pulverenti 2015-08-18 11:35:51 -04:00
parent 42ff117d72
commit ceeb569571
5 changed files with 50 additions and 54 deletions

View file

@ -120,20 +120,10 @@
ImageLoader.lazyChildren(elem);
}
$(document).on('pageinitdepends', "#indexPage", function () {
var page = this;
$(page.querySelector('neon-animated-pages')).on('tabchange', function () {
if (parseInt(this.selected) == 3) {
var tabContent = page.querySelector('.homeUpcomingTabContent');
if (LibraryBrowser.needsRefresh(tabContent)) {
loadUpcoming(tabContent);
}
}
});
});
window.HomePage.renderUpcoming = function (page, tabContent) {
if (LibraryBrowser.needsRefresh(tabContent)) {
loadUpcoming(tabContent);
}
};
})(jQuery, document);