mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
#247 - Web client - Hide views that have no content
This commit is contained in:
parent
aea2d1c42a
commit
443299c687
40 changed files with 267 additions and 238 deletions
|
@ -76,37 +76,10 @@
|
|||
});
|
||||
}
|
||||
|
||||
function enableCustomHeader(page, text) {
|
||||
var elem = $('.libraryPageHeader', page).show();
|
||||
|
||||
$('span', elem).html(text);
|
||||
}
|
||||
|
||||
function renderHeader(page, item) {
|
||||
|
||||
var context = getParameterByName('context');
|
||||
|
||||
if (context == "movies") {
|
||||
enableCustomHeader(page, "Movies");
|
||||
$('#standardLogo', page).hide();
|
||||
}
|
||||
else if (context == "music") {
|
||||
enableCustomHeader(page, "Music");
|
||||
$('#standardLogo', page).hide();
|
||||
}
|
||||
else if (context == "tv") {
|
||||
enableCustomHeader(page, "TV Shows");
|
||||
$('#standardLogo', page).hide();
|
||||
}
|
||||
else if (context == "games") {
|
||||
enableCustomHeader(page, "Games");
|
||||
$('#standardLogo', page).hide();
|
||||
}
|
||||
else {
|
||||
$('.libraryPageHeader', page).hide();
|
||||
$('#standardLogo', page).show();
|
||||
}
|
||||
|
||||
$('.itemTabs', page).hide();
|
||||
|
||||
if (context == "movies" && item.Type == "Genre") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue