mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix lint errors
This commit is contained in:
parent
a3949c1889
commit
1a2f325b9d
3 changed files with 9 additions and 12 deletions
|
@ -133,8 +133,6 @@ import ServerConnections from '../ServerConnections';
|
||||||
|
|
||||||
function loadSection(page, apiClient, user, userSettings, userViews, allSections, index) {
|
function loadSection(page, apiClient, user, userSettings, userViews, allSections, index) {
|
||||||
const section = allSections[index];
|
const section = allSections[index];
|
||||||
const userId = user.Id;
|
|
||||||
|
|
||||||
const elem = page.querySelector('.section' + index);
|
const elem = page.querySelector('.section' + index);
|
||||||
|
|
||||||
if (section === 'latestmedia') {
|
if (section === 'latestmedia') {
|
||||||
|
|
|
@ -11,7 +11,6 @@ import './formdialog.scss';
|
||||||
import '../elements/emby-button/emby-button';
|
import '../elements/emby-button/emby-button';
|
||||||
import '../elements/emby-itemscontainer/emby-itemscontainer';
|
import '../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
import './cardbuilder/card.scss';
|
import './cardbuilder/card.scss';
|
||||||
import ServerConnections from './ServerConnections';
|
|
||||||
|
|
||||||
const enableFocusTransform = !browser.slow && !browser.edge;
|
const enableFocusTransform = !browser.slow && !browser.edge;
|
||||||
|
|
||||||
|
@ -120,7 +119,7 @@ function discoverDevices(view) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function tunerPicker() {
|
function tunerPicker() {
|
||||||
this.show = function (options) {
|
this.show = function () {
|
||||||
const dialogOptions = {
|
const dialogOptions = {
|
||||||
removeOnClose: true,
|
removeOnClose: true,
|
||||||
scrollY: false
|
scrollY: false
|
||||||
|
|
|
@ -84,7 +84,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
itemsContainer.innerHTML = '';
|
itemsContainer.innerHTML = '';
|
||||||
};
|
};
|
||||||
|
|
||||||
const reloadItems = (page) => {
|
const reloadItems = () => {
|
||||||
loading.show();
|
loading.show();
|
||||||
isLoading = true;
|
isLoading = true;
|
||||||
const query = getQuery();
|
const query = getQuery();
|
||||||
|
@ -97,7 +97,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
if (userSettings.libraryPageSize() > 0) {
|
if (userSettings.libraryPageSize() > 0) {
|
||||||
query.StartIndex += query.Limit;
|
query.StartIndex += query.Limit;
|
||||||
}
|
}
|
||||||
reloadItems(tabContent);
|
reloadItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
function onPreviousPageClick() {
|
function onPreviousPageClick() {
|
||||||
|
@ -108,7 +108,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
if (userSettings.libraryPageSize() > 0) {
|
if (userSettings.libraryPageSize() > 0) {
|
||||||
query.StartIndex = Math.max(0, query.StartIndex - query.Limit);
|
query.StartIndex = Math.max(0, query.StartIndex - query.Limit);
|
||||||
}
|
}
|
||||||
reloadItems(tabContent);
|
reloadItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
|
@ -212,7 +212,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
});
|
});
|
||||||
Events.on(filterDialog, 'filterchange', function () {
|
Events.on(filterDialog, 'filterchange', function () {
|
||||||
getQuery().StartIndex = 0;
|
getQuery().StartIndex = 0;
|
||||||
reloadItems(tabContent);
|
reloadItems();
|
||||||
});
|
});
|
||||||
|
|
||||||
filterDialog.show();
|
filterDialog.show();
|
||||||
|
@ -232,7 +232,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
const query = getQuery();
|
const query = getQuery();
|
||||||
query.NameStartsWith = newValue;
|
query.NameStartsWith = newValue;
|
||||||
query.StartIndex = 0;
|
query.StartIndex = 0;
|
||||||
reloadItems(tabContent);
|
reloadItems();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.alphaPicker = new AlphaPicker({
|
this.alphaPicker = new AlphaPicker({
|
||||||
|
@ -274,7 +274,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
}],
|
}],
|
||||||
callback: function () {
|
callback: function () {
|
||||||
getQuery().StartIndex = 0;
|
getQuery().StartIndex = 0;
|
||||||
reloadItems(tabContent);
|
reloadItems();
|
||||||
},
|
},
|
||||||
query: getQuery(),
|
query: getQuery(),
|
||||||
button: e.target
|
button: e.target
|
||||||
|
@ -292,7 +292,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
libraryBrowser.saveViewSetting(getSavedQueryKey(), viewStyle);
|
libraryBrowser.saveViewSetting(getSavedQueryKey(), viewStyle);
|
||||||
getQuery().StartIndex = 0;
|
getQuery().StartIndex = 0;
|
||||||
onViewStyleChange();
|
onViewStyleChange();
|
||||||
reloadItems(tabContent);
|
reloadItems();
|
||||||
});
|
});
|
||||||
|
|
||||||
tabContent.querySelector('.btnPlayAll').addEventListener('click', playAll);
|
tabContent.querySelector('.btnPlayAll').addEventListener('click', playAll);
|
||||||
|
@ -303,7 +303,7 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
onViewStyleChange();
|
onViewStyleChange();
|
||||||
|
|
||||||
this.renderTab = function () {
|
this.renderTab = function () {
|
||||||
reloadItems(tabContent);
|
reloadItems();
|
||||||
updateFilterControls();
|
updateFilterControls();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue