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

separate latest

This commit is contained in:
Luke Pulverenti 2016-10-28 15:20:22 -04:00
parent e093d85352
commit bf511950ae
4 changed files with 20 additions and 81 deletions

View file

@ -5,26 +5,6 @@
function getDefaultSection(index) {
if (AppInfo.isNativeApp) {
switch (index) {
case 0:
return defaultFirstSection;
case 1:
return 'resume';
case 2:
return 'nextup';
case 3:
return 'latestmovies';
case 4:
return 'latestepisodes';
case 5:
return 'latesttvrecordings';
default:
return '';
}
}
switch (index) {
case 0:
@ -32,13 +12,14 @@
case 1:
return 'resume';
case 2:
return 'latestmedia';
return 'nextup';
case 3:
return 'latestmedia';
case 4:
return 'latesttvrecordings';
default:
return '';
}
}
function loadSection(page, user, displayPreferences, index) {
@ -58,12 +39,6 @@
if (section == 'latestmedia') {
return Sections.loadRecentlyAdded(elem, user);
}
else if (section == 'latestmovies') {
return Sections.loadLatestMovies(elem, user);
}
else if (section == 'latestepisodes') {
return Sections.loadLatestEpisodes(elem, user);
}
else if (section == 'librarytiles') {
return Sections.loadLibraryTiles(elem, user, 'backdrop', index, false, showLibraryTileNames);
}
@ -105,7 +80,7 @@
function loadSections(page, user, displayPreferences) {
var i, length;
var sectionCount = 6;
var sectionCount = 5;
var elem = page.querySelector('.sections');