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

add remote control script file

This commit is contained in:
Luke Pulverenti 2013-05-28 21:45:39 -04:00
parent 1c9f49e4f3
commit 57fed6b0ad
5 changed files with 146 additions and 103 deletions

View file

@ -1,16 +1,6 @@
(function ($, document, LibraryBrowser, window) {
var currentItem;
var sessionsPromise;
function getSessionsPromise() {
if (sessionsPromise == null) {
sessionsPromise = ApiClient.getSessions();
}
return sessionsPromise;
}
function reload(page) {
@ -874,6 +864,11 @@
Dashboard.navigate("edititemmetadata.html?id=" + currentItem.Id);
});
$('#btnRemote', page).on('click', function () {
RemoteControl.showMenu(page, currentItem);
});
}).on('pageshow', "#itemDetailPage", function () {
var page = this;