jellyfin-web/dashboard-ui/scripts/livetvguide.js

24 lines
590 B
JavaScript
Raw Normal View History

define([], function () {
2014-01-05 18:59:21 -07:00
2015-10-08 12:12:53 -07:00
window.LiveTvPage.initGuideTab = function (page, tabContent) {
2014-01-10 06:52:01 -07:00
};
2015-05-22 12:16:14 -07:00
2015-10-08 12:12:53 -07:00
window.LiveTvPage.renderGuideTab = function (page, tabContent) {
2014-01-06 11:25:33 -07:00
2015-10-08 12:12:53 -07:00
if (page.guideInstance) {
if (LibraryBrowser.needsRefresh(tabContent)) {
page.guideInstance.refresh();
2014-01-06 11:25:33 -07:00
}
2015-04-12 09:46:29 -07:00
} else {
2015-10-08 12:12:53 -07:00
require(['tvguide'], function (tvguide) {
2015-04-12 09:46:29 -07:00
2015-10-08 12:12:53 -07:00
page.guideInstance = new tvguide({
element: tabContent,
2016-03-19 14:25:07 -07:00
enableHeadRoom: true
2015-10-08 12:12:53 -07:00
});
2015-05-06 20:11:51 -07:00
});
}
2015-08-18 08:52:48 -07:00
};
2014-01-05 18:59:21 -07:00
});