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

update tabs

This commit is contained in:
Luke Pulverenti 2016-04-14 12:30:37 -04:00
parent 7a3858d368
commit 49f8917315
20 changed files with 94 additions and 31 deletions

View file

@ -744,7 +744,9 @@
require(['paper-tabs'], function () {
viewMenuBarTabs.innerHTML = '<paper-tabs selected="' + selectedIndex + '" hidescrollbuttons noink>' + builder().map(function (t) {
var noInk = browserInfo.animate ? '' : ' noink';
viewMenuBarTabs.innerHTML = '<paper-tabs selected="' + selectedIndex + '" hidescrollbuttons ' + noInk + '>' + builder().map(function (t) {
return '<paper-tab link><a class="clearLink paperTabLink" href="' + t.href + '"><div>' + t.name + '</div></a></paper-tab>';

View file

@ -112,6 +112,18 @@
return false;
}
function getTabs() {
return [
{
href: 'library.html',
name: Globalize.translate('TabFolders')
},
{
href: 'librarypathmapping.html',
name: Globalize.translate('TabPathSubstitution')
}];
}
$(document).on('pageinit', "#libraryPathMappingPage", function () {
var page = this;
@ -122,6 +134,7 @@
}).on('pageshow', "#libraryPathMappingPage", function () {
LibraryMenu.setTabs('librarysetup', 1, getTabs);
Dashboard.showLoadingMsg();
var page = this;

View file

@ -452,6 +452,19 @@
});
}
};
function getTabs() {
return [
{
href: 'library.html',
name: Globalize.translate('TabFolders')
},
{
href: 'librarypathmapping.html',
name: Globalize.translate('TabPathSubstitution')
}];
}
pageClassOn('pageshow', "mediaLibraryPage", function () {
var page = this;
@ -461,6 +474,7 @@
pageIdOn('pageshow', "mediaLibraryPage", function () {
LibraryMenu.setTabs('librarysetup', 0, getTabs);
var page = this;
// on here

View file

@ -741,11 +741,9 @@ var Dashboard = {
icon: 'people'
}, {
divider: true,
name: Globalize.translate('TabLibrary')
}, {
name: Globalize.translate('TabFolders'),
name: Globalize.translate('TabLibrary'),
href: "library.html",
pageIds: ['mediaLibraryPage'],
pageIds: ['mediaLibraryPage', 'libraryPathMappingPage'],
icon: 'folder',
color: '#009688'
}, {
@ -754,11 +752,6 @@ var Dashboard = {
pageIds: ['metadataConfigurationPage', 'metadataImagesConfigurationPage', 'metadataNfoPage'],
icon: 'insert-drive-file',
color: '#FF9800'
}, {
name: Globalize.translate('TabPathSubstitution'),
href: "librarypathmapping.html",
pageIds: ['libraryPathMappingPage'],
icon: 'mode-edit'
}, {
name: Globalize.translate('TabSubtitles'),
href: "metadatasubtitles.html",