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

refresh people on demand, when needed

This commit is contained in:
Luke Pulverenti 2016-08-14 17:29:35 -04:00
parent 93ebd18a5c
commit 5722b968dd
2 changed files with 21 additions and 38 deletions

View file

@ -197,6 +197,10 @@
function initSelectionBar(tabs) {
if (!browser.animate) {
return;
}
var contentScrollSlider = tabs.querySelector('.emby-tabs-slider');
if (!contentScrollSlider) {
@ -285,7 +289,7 @@
}
};
EmbyTabs.triggerTabChange = function (selected) {
EmbyTabs.triggerBeforeTabChange = function (selected) {
var tabs = this;
@ -294,6 +298,11 @@
selectedTabIndex: tabs.selectedIndex()
}
}));
};
EmbyTabs.triggerTabChange = function (selected) {
var tabs = this;
tabs.dispatchEvent(new CustomEvent("tabchange", {
detail: {