mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
hide commands when not applicable
This commit is contained in:
parent
7f4327b908
commit
61d8e2f609
1 changed files with 4 additions and 1 deletions
|
@ -646,7 +646,7 @@
|
||||||
|
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
html += '<div data-role="collapsible" data-content-theme="c" data-collapsed="true" data-mini="true" style="margin-top: 1em;">';
|
html += '<div class="commandsCollapsible" data-role="collapsible" data-content-theme="c" data-collapsed="true" data-mini="true" style="margin-top: 1em;display:none;">';
|
||||||
html += '<h4>Commands</h4>';
|
html += '<h4>Commands</h4>';
|
||||||
html += '<div>';
|
html += '<div>';
|
||||||
|
|
||||||
|
@ -841,10 +841,12 @@
|
||||||
|
|
||||||
$('.nothingPlaying', popup).hide();
|
$('.nothingPlaying', popup).hide();
|
||||||
$('.nowPlaying', popup).hide();
|
$('.nowPlaying', popup).hide();
|
||||||
|
$('.commandsCollapsible', popup).hide();
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (session.NowPlayingItem) {
|
else if (session.NowPlayingItem) {
|
||||||
|
|
||||||
|
$('.commandsCollapsible', popup).show();
|
||||||
$('.nothingPlaying', popup).hide();
|
$('.nothingPlaying', popup).hide();
|
||||||
|
|
||||||
var elem = $('.nowPlaying', popup).show();
|
var elem = $('.nowPlaying', popup).show();
|
||||||
|
@ -853,6 +855,7 @@
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
$('.commandsCollapsible', popup).show();
|
||||||
$('.nothingPlaying', popup).show();
|
$('.nothingPlaying', popup).show();
|
||||||
$('.nowPlaying', popup).hide();
|
$('.nowPlaying', popup).hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue