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

update dto dictionary building

This commit is contained in:
Luke Pulverenti 2015-07-12 15:33:00 -04:00
parent 3df9361806
commit 697257670c
16 changed files with 429 additions and 352 deletions

View file

@ -211,10 +211,11 @@
var page = this;
var tabs = page.querySelector('paper-tabs');
LibraryBrowser.configurePaperLibraryTabs(page, page.querySelectorAll('paper-tabs')[0], page.querySelectorAll('neon-animated-pages')[0]);
LibraryBrowser.configurePaperLibraryTabs(page, tabs, page.querySelector('neon-animated-pages'));
$(tabs).on('iron-select', function () {
var selected = this.selected;
if (LibraryBrowser.navigateOnLibraryTabSelect()) {
if (selected) {
@ -232,17 +233,6 @@
loadTab(page, parseInt(this.selected));
});
$(page.querySelector('neon-animated-pages')).on('iron-select', function () {
// When transition animations are used, add a content loading delay to allow the animations to finish
// Otherwise with both operations happening at the same time, it can cause the animation to not run at full speed.
var delay = LibraryBrowser.enableFullPaperTabs() ? 500 : 0;
var pages = this;
setTimeout(function () {
$(pages).trigger('tabchange');
}, delay);
});
Events.on(page.querySelector('.btnTakeTour'), 'click', function () {
takeTour(page, Dashboard.getCurrentUserId());
});