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

update translations

This commit is contained in:
Luke Pulverenti 2015-09-25 01:15:29 -04:00
parent 764a5ac824
commit c2e474e8e9
105 changed files with 13294 additions and 12883 deletions

View file

@ -4,6 +4,27 @@
function getDefaultSection(index) {
if (AppInfo.isNativeApp && $.browser.safari) {
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:
@ -37,6 +58,12 @@
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);
}
@ -55,7 +82,9 @@
else if (section == 'resume') {
return Sections.loadResume(elem, userId);
}
else if (section == 'nextup') {
return Sections.loadNextUp(elem, userId);
}
else if (section == 'latesttvrecordings') {
return Sections.loadLatestLiveTvRecordings(elem, userId);
}
@ -75,7 +104,7 @@
function loadSections(page, user, displayPreferences) {
var i, length;
var sectionCount = 4;
var sectionCount = 6;
var elem = page.querySelector('.sections');
@ -244,6 +273,14 @@
Events.on(page.querySelector('.btnTakeTour'), 'click', function () {
takeTour(page, Dashboard.getCurrentUserId());
});
if (AppInfo.enableHomeTabs) {
page.classList.remove('noSecondaryNavPage');
page.querySelector('.libraryViewNav').classList.remove('hide');
} else {
page.classList.add('noSecondaryNavPage');
page.querySelector('.libraryViewNav').classList.add('hide');
}
});
pageIdOn('pageshow', "indexPage", function () {