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:
parent
beea3e341f
commit
668418e69b
4 changed files with 39 additions and 36 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue