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

update live tv guide

This commit is contained in:
Luke Pulverenti 2015-08-02 19:47:31 -04:00
parent 0380fa5a83
commit 4120f18fc9
27 changed files with 330 additions and 352 deletions

View file

@ -444,9 +444,9 @@
});
}
$(document).on('pageinitdepends', "#liveTvGuidePage", function () {
$(document).on('pageinitdepends', "#liveTvSuggestedPage", function () {
var page = this;
var page = this.querySelector('.guideTabContent');
Events.on(page.querySelector('.programGrid'), 'scroll', function () {
@ -485,13 +485,20 @@
selectDate(page);
});
}).on('pagebeforeshowready', "#liveTvGuidePage", function () {
}).on('pagebeforeshowready', "#liveTvSuggestedPage", function () {
var page = this;
if (LibraryBrowser.needsRefresh(page)) {
reloadPage(page);
}
$(page.querySelector('neon-animated-pages')).on('tabchange', function () {
if (parseInt(this.selected) == 1) {
var tabContent = page.querySelector('.guideTabContent');
if (LibraryBrowser.needsRefresh(tabContent)) {
reloadPage(tabContent);
}
}
});
});
})(jQuery, document);