mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Cast updates
This commit is contained in:
parent
e9b554b932
commit
84eb555644
4 changed files with 57 additions and 5 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
html += '<div class="viewMenuSecondary">';
|
||||
|
||||
html += '<button class="btnCast btnDefaultCast" type="button" data-role="none"></button>';
|
||||
html += '<button id="btnCast" class="btnCast btnDisabledCast" type="button" data-role="none"></button>';
|
||||
|
||||
html += '<a class="viewMenuLink btnCurrentUser" href="#" onclick="Dashboard.showUserFlyout(this);">';
|
||||
|
||||
|
@ -179,6 +179,8 @@
|
|||
|
||||
var info = MediaController.getPlayerInfo();
|
||||
|
||||
if ($(".btnCast").hasClass("btnDisabledCast") == false) return; // No icon change if no CC is detected
|
||||
|
||||
if (info.isLocalPlayer) {
|
||||
|
||||
$('.btnCast').addClass('btnDefaultCast').removeClass('btnActiveCast');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue