mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
refactor: Remove obsolete code
Leftover from reworking of poster generation.
This commit is contained in:
parent
8221f82d1f
commit
fff64ae5a5
@ -13,7 +13,6 @@ import listView from '../../components/listview/listview';
|
|||||||
import itemContextMenu from '../../components/itemContextMenu';
|
import itemContextMenu from '../../components/itemContextMenu';
|
||||||
import itemHelper from '../../components/itemHelper';
|
import itemHelper from '../../components/itemHelper';
|
||||||
import dom from '../../scripts/dom';
|
import dom from '../../scripts/dom';
|
||||||
import indicators from '../../components/indicators/indicators';
|
|
||||||
import imageLoader from '../../components/images/imageLoader';
|
import imageLoader from '../../components/images/imageLoader';
|
||||||
import libraryMenu from '../../scripts/libraryMenu';
|
import libraryMenu from '../../scripts/libraryMenu';
|
||||||
import globalize from '../../scripts/globalize';
|
import globalize from '../../scripts/globalize';
|
||||||
@ -839,18 +838,6 @@ function renderImage(page, item) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function refreshDetailImageUserData(elem, item) {
|
|
||||||
const container = elem.querySelector('.detailImageProgressContainer');
|
|
||||||
|
|
||||||
if (container) {
|
|
||||||
container.innerHTML = indicators.getProgressBarHtml(item);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function refreshImage(page, item) {
|
|
||||||
refreshDetailImageUserData(page.querySelector('.detailImageContainer'), item);
|
|
||||||
}
|
|
||||||
|
|
||||||
function setPeopleHeader(page, item) {
|
function setPeopleHeader(page, item) {
|
||||||
if (item.MediaType == 'Audio' || item.Type == 'MusicAlbum' || item.MediaType == 'Book' || item.MediaType == 'Photo') {
|
if (item.MediaType == 'Audio' || item.Type == 'MusicAlbum' || item.MediaType == 'Book' || item.MediaType == 'Photo') {
|
||||||
page.querySelector('#peopleHeader').innerHTML = globalize.translate('People');
|
page.querySelector('#peopleHeader').innerHTML = globalize.translate('People');
|
||||||
@ -2056,7 +2043,6 @@ export default function (view, params) {
|
|||||||
if (userData) {
|
if (userData) {
|
||||||
currentItem.UserData = userData;
|
currentItem.UserData = userData;
|
||||||
reloadPlayButtons(view, currentItem);
|
reloadPlayButtons(view, currentItem);
|
||||||
refreshImage(view, currentItem);
|
|
||||||
autoFocus(view);
|
autoFocus(view);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user