1
0
Fork 0
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:
Luke Pulverenti 2013-08-28 01:52:00 -04:00
parent 7f4327b908
commit 61d8e2f609

View file

@ -646,7 +646,7 @@
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 += '<div>';
@ -841,10 +841,12 @@
$('.nothingPlaying', popup).hide();
$('.nowPlaying', popup).hide();
$('.commandsCollapsible', popup).hide();
}
else if (session.NowPlayingItem) {
$('.commandsCollapsible', popup).show();
$('.nothingPlaying', popup).hide();
var elem = $('.nowPlaying', popup).show();
@ -853,6 +855,7 @@
} else {
$('.commandsCollapsible', popup).show();
$('.nothingPlaying', popup).show();
$('.nowPlaying', popup).hide();
}