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

update playerselection.js

This commit is contained in:
Luke Pulverenti 2017-01-19 15:09:04 -05:00
parent beea3e341f
commit 668418e69b
4 changed files with 39 additions and 36 deletions

View file

@ -55,7 +55,6 @@
lazyLoadViewMenuBarImages();
document.dispatchEvent(new CustomEvent("headercreated", {}));
bindMenuEvents();
}
@ -224,6 +223,21 @@
viewMenuBar.querySelector('.btnNotifications').addEventListener('click', function () {
Dashboard.navigate('notificationlist.html');
});
var btnCast = document.querySelector('.headerButton-btnCast');
if (btnCast) {
btnCast.addEventListener('click', onCastButtonClicked);
}
}
function onCastButtonClicked() {
var btn = this;
require(['playerSelectionMenu'], function (playerSelectionMenu) {
playerSelectionMenu.show(btn);
});
}
function getItemHref(item, context) {