mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
4678528d00
Added LICENSE, README.md, CONTRIBUTORS.md
16 lines
542 B
JavaScript
16 lines
542 B
JavaScript
define(["tvguide"], function(tvguide) {
|
|
"use strict";
|
|
return function(view, params, tabContent) {
|
|
var guideInstance, self = this;
|
|
self.renderTab = function() {
|
|
guideInstance || (guideInstance = new tvguide({
|
|
element: tabContent,
|
|
serverId: ApiClient.serverId()
|
|
}))
|
|
}, self.onShow = function() {
|
|
guideInstance && guideInstance.resume()
|
|
}, self.onHide = function() {
|
|
guideInstance && guideInstance.pause()
|
|
}
|
|
}
|
|
}); |