1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

start pulling in EmbyTV

This commit is contained in:
Luke Pulverenti 2015-07-20 14:32:55 -04:00
parent adfc486508
commit 0e4e4da6c8
11 changed files with 31 additions and 199 deletions

View file

@ -49,16 +49,12 @@
var context = getParameterByName('context');
var editQuery = '?id=' + item.Id;
if (context) {
editQuery += '&context=' + context;
}
currentItem = item;
LibraryMenu.setTitle(item.Name);
Backdrops.setBackdrops(page, [item]);
renderHeader(page, item, context);
var name = item.Name;
Dashboard.setPageTitle(name);
@ -104,48 +100,6 @@
});
}
function renderHeader(page, item, context) {
$('.itemTabs', page).hide();
if (context == "movies" && item.Type == "Genre") {
$('#movieGenreTabs', page).show();
}
if (context == "movies" && item.Type == "Person") {
$('#moviePeopleTabs', page).show();
}
if (context == "movies" && item.Type == "Studio") {
$('#movieStudioTabs', page).show();
}
if (context == "tv" && item.Type == "Studio") {
$('#tvStudioTabs', page).show();
}
if (context == "tv" && item.Type == "Genre") {
$('#tvGenreTabs', page).show();
}
if (context == "tv" && item.Type == "Person") {
$('#tvPeopleTabs', page).show();
}
if (context == "music" && item.Type == "MusicGenre") {
$('#musicGenreTabs', page).show();
}
if (context == "music" && item.Type == "MusicArtist") {
$('#artistTabs', page).show();
}
if (context == "games" && item.Type == "GameGenre") {
$('#gameGenreTabs', page).show();
}
if (context == "games" && item.Type == "Studio") {
$('#gameStudioTabs', page).show();
}
}
function renderTabs(page, item, context) {
var html = '<fieldset data-role="controlgroup" data-type="horizontal" class="libraryTabs">';