mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix appHost.supports
This commit is contained in:
parent
9675bd57b8
commit
a7df7ad720
20 changed files with 48 additions and 66 deletions
|
@ -18,7 +18,7 @@ import 'webcomponents';
|
|||
|
||||
function onClick(e) {
|
||||
const itemsContainer = this;
|
||||
let multiSelect = itemsContainer.multiSelect;
|
||||
const multiSelect = itemsContainer.multiSelect;
|
||||
|
||||
if (multiSelect) {
|
||||
if (multiSelect.onContainerClick.call(itemsContainer, e) === false) {
|
||||
|
@ -164,7 +164,7 @@ import 'webcomponents';
|
|||
}
|
||||
|
||||
function getEventsToMonitor(itemsContainer) {
|
||||
let monitor = itemsContainer.getAttribute('data-monitor');
|
||||
const monitor = itemsContainer.getAttribute('data-monitor');
|
||||
if (monitor) {
|
||||
return monitor.split(',');
|
||||
}
|
||||
|
@ -356,7 +356,7 @@ import 'webcomponents';
|
|||
ItemsContainerPrototype.resume = function (options) {
|
||||
this.paused = false;
|
||||
|
||||
let refreshIntervalEndTime = this.refreshIntervalEndTime;
|
||||
const refreshIntervalEndTime = this.refreshIntervalEndTime;
|
||||
if (refreshIntervalEndTime) {
|
||||
const remainingMs = refreshIntervalEndTime - new Date().getTime();
|
||||
if (remainingMs > 0 && !this.needsRefresh) {
|
||||
|
@ -395,7 +395,7 @@ import 'webcomponents';
|
|||
return;
|
||||
}
|
||||
|
||||
let timeout = this.refreshTimeout;
|
||||
const timeout = this.refreshTimeout;
|
||||
if (timeout) {
|
||||
clearTimeout(timeout);
|
||||
}
|
||||
|
@ -434,7 +434,7 @@ import 'webcomponents';
|
|||
function onDataFetched(result) {
|
||||
const items = result.Items || result;
|
||||
|
||||
let parentContainer = this.parentContainer;
|
||||
const parentContainer = this.parentContainer;
|
||||
if (parentContainer) {
|
||||
if (items.length) {
|
||||
parentContainer.classList.remove('hide');
|
||||
|
|
|
@ -75,7 +75,7 @@ import EmbyButtonPrototype from 'emby-button';
|
|||
button.title = globalize.translate('Played');
|
||||
}
|
||||
|
||||
let text = button.querySelector('.button-text');
|
||||
const text = button.querySelector('.button-text');
|
||||
if (text) {
|
||||
text.innerHTML = button.title;
|
||||
}
|
||||
|
|
|
@ -118,7 +118,7 @@ const EmbyScrollButtonsPrototype = Object.create(HTMLDivElement.prototype);
|
|||
}
|
||||
|
||||
function onScrollButtonClick(e) {
|
||||
let scroller = this.parentNode.nextSibling;
|
||||
const scroller = this.parentNode.nextSibling;
|
||||
|
||||
const direction = this.getAttribute('data-direction');
|
||||
const scrollSize = getScrollSize(scroller);
|
||||
|
@ -161,7 +161,7 @@ const EmbyScrollButtonsPrototype = Object.create(HTMLDivElement.prototype);
|
|||
const parent = this.scroller;
|
||||
this.scroller = null;
|
||||
|
||||
let scrollHandler = this.scrollHandler;
|
||||
const scrollHandler = this.scrollHandler;
|
||||
if (parent && scrollHandler) {
|
||||
parent.removeScrollEventListener(scrollHandler, {
|
||||
capture: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue