1
0
Fork 0
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:
Luke Pulverenti 2013-05-14 01:36:36 -04:00
parent aea2d1c42a
commit 443299c687
40 changed files with 267 additions and 238 deletions

View file

@ -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") {