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

update tabs

This commit is contained in:
Luke Pulverenti 2015-07-01 11:47:41 -04:00
parent c8eb5f2b0c
commit 5bd79b1ab7
18 changed files with 325 additions and 314 deletions

View file

@ -59,14 +59,19 @@
});
}
$(document).on('pagebeforeshowready', "#homeUpcomingPage", function () {
$(document).on('pageinitdepends', "#indexPage", function () {
var page = this;
var tabContent = page.querySelector('.homeUpcomingTabContent');
if (LibraryBrowser.needsRefresh(page)) {
loadUpcoming(page);
}
$(page.querySelector('neon-animated-pages')).on('iron-select', function () {
if (parseInt(this.selected) == 3) {
if (LibraryBrowser.needsRefresh(tabContent)) {
loadUpcoming(tabContent);
}
}
});
});
})(jQuery, document);