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

25 lines
652 B
JavaScript
Raw Normal View History

2014-10-15 20:26:39 -07:00
(function ($, document) {
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,
enableHeadRoom: true,
enableHoverMenu: true
});
2015-05-06 20:11:51 -07:00
});
}
2015-08-18 08:52:48 -07:00
};
2014-01-05 18:59:21 -07:00
2015-05-22 12:16:14 -07:00
})(jQuery, document);