mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update tabs
This commit is contained in:
parent
26e2cbbb1d
commit
332c95dbae
1 changed files with 9 additions and 17 deletions
|
@ -248,22 +248,11 @@
|
|||
}, delay);
|
||||
});
|
||||
|
||||
tabs.addEventListener('iron-select', function() {
|
||||
var selected = this.selected;
|
||||
|
||||
if (LibraryBrowser.navigateOnLibraryTabSelect()) {
|
||||
|
||||
if (selected) {
|
||||
var url = replaceQueryString(baseUrl, 'tab', selected);
|
||||
Dashboard.navigate(url);
|
||||
} else {
|
||||
Dashboard.navigate(baseUrl);
|
||||
}
|
||||
|
||||
} else {
|
||||
pages.selected = selected;
|
||||
}
|
||||
});
|
||||
if (!LibraryBrowser.navigateOnLibraryTabSelect()) {
|
||||
tabs.addEventListener('iron-select', function () {
|
||||
pages.selected = this.selected;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
onTabbedpagebeforeshow: function () {
|
||||
|
@ -307,8 +296,11 @@
|
|||
}
|
||||
|
||||
} else {
|
||||
|
||||
var pages = page.querySelector('neon-animated-pages');
|
||||
if (!NavHelper.isBack()) {
|
||||
|
||||
// Go back to the first tab
|
||||
if (LibraryBrowser.enableFullPaperTabs() && !NavHelper.isBack()) {
|
||||
if (pages.selected) {
|
||||
|
||||
var entryAnimation = pages.entryAnimation;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue