mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
temp break stuff back
This commit is contained in:
parent
4609a8f2d0
commit
e4bafe3c05
1 changed files with 7 additions and 5 deletions
|
@ -139,7 +139,7 @@ define(['dom', 'browser', 'events', 'emby-tabs', 'emby-button'], function (dom,
|
|||
|
||||
var index = 0;
|
||||
|
||||
var tabsElement;
|
||||
/*var tabsElement;
|
||||
try {
|
||||
tabsElement = document.createElement('div', {is: 'emby-tabs'});
|
||||
} catch (err) {
|
||||
|
@ -150,7 +150,8 @@ define(['dom', 'browser', 'events', 'emby-tabs', 'emby-button'], function (dom,
|
|||
tabsElement.setAttribute('data-index', selectedIndex);
|
||||
}
|
||||
tabsElement.className = 'tabs-viewmenubar';
|
||||
tabsElement.innerHTML = '<div class="emby-tabs-slider" style="white-space:nowrap;">' + getTabsFn().map(function (t) {
|
||||
tabsElement.innerHTML = '<div class="emby-tabs-slider" style="white-space:nowrap;">' + getTabsFn().map(function (t) {*/
|
||||
var html = '<div is="emby-tabs" ' + (selectedIndex != null ? 'data-index="' + selectedIndex + '" ' : '') + 'class="tabs-viewmenubar">' + '<div class="emby-tabs-slider" style="white-space:nowrap;">' + getTabsFn().map(function (t) {*/
|
||||
|
||||
var tabClass = 'emby-tab-button';
|
||||
|
||||
|
@ -173,12 +174,13 @@ define(['dom', 'browser', 'events', 'emby-tabs', 'emby-button'], function (dom,
|
|||
index++;
|
||||
return tabHtml;
|
||||
|
||||
}).join('') + '</div>';
|
||||
}).join('') + '</div></div>';
|
||||
|
||||
while (tabsContainerElem.children.length != 0) {
|
||||
/*while (tabsContainerElem.children.length != 0) {
|
||||
tabsContainerElem.removeChild(tabsContainerElem.children[0]);
|
||||
}
|
||||
tabsContainerElem.appendChild(tabsElement);
|
||||
tabsContainerElem.appendChild(tabsElement);*/
|
||||
tabsContainerElem.innerHTML = html;
|
||||
|
||||
document.body.classList.add('withSectionTabs');
|
||||
tabOwnerView = view;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue