mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
4678528d00
Added LICENSE, README.md, CONTRIBUTORS.md
11 lines
611 B
JavaScript
11 lines
611 B
JavaScript
define(["components/remotecontrol", "libraryMenu", "emby-button"], function(remotecontrolFactory, libraryMenu) {
|
|
"use strict";
|
|
return function(view, params) {
|
|
var remoteControl = new remotecontrolFactory;
|
|
remoteControl.init(view, view.querySelector(".remoteControlContent")), view.addEventListener("viewshow", function(e) {
|
|
libraryMenu.setTransparentMenu(!0), remoteControl && remoteControl.onShow()
|
|
}), view.addEventListener("viewbeforehide", function(e) {
|
|
libraryMenu.setTransparentMenu(!1), remoteControl && remoteControl.destroy()
|
|
})
|
|
}
|
|
}); |