1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix some missing resource issues

This commit is contained in:
dkanada 2020-01-24 02:50:59 +09:00
parent bee1b9f979
commit ed777cdea2
8 changed files with 7 additions and 7 deletions

View file

@ -0,0 +1,22 @@
define(["components/remotecontrol/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(true);
if (remoteControl) {
remoteControl.onShow();
}
});
view.addEventListener("viewbeforehide", function (e) {
libraryMenu.setTransparentMenu(false);
if (remoteControl) {
remoteControl.destroy();
}
});
};
});