jellyfin-web/dashboard-ui/scripts/livetvguide.js
2016-03-19 17:25:07 -04:00

24 lines
590 B
JavaScript

define([], function () {
window.LiveTvPage.initGuideTab = function (page, tabContent) {
};
window.LiveTvPage.renderGuideTab = function (page, tabContent) {
if (page.guideInstance) {
if (LibraryBrowser.needsRefresh(tabContent)) {
page.guideInstance.refresh();
}
} else {
require(['tvguide'], function (tvguide) {
page.guideInstance = new tvguide({
element: tabContent,
enableHeadRoom: true
});
});
}
};
});