mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update dialogs
This commit is contained in:
parent
b385aa2d95
commit
797ab3899b
23 changed files with 469 additions and 95 deletions
|
@ -107,6 +107,8 @@
|
|||
var elem = getBackdropContainer();
|
||||
elem.innerHTML = '';
|
||||
|
||||
getSkinContainer().removeAttribute('data-backdroptype');
|
||||
|
||||
if (clearAll) {
|
||||
hasExternalBackdrop = false;
|
||||
}
|
||||
|
@ -114,16 +116,18 @@
|
|||
}
|
||||
|
||||
var skinContainer;
|
||||
function setSkinContainerBackgroundEnabled() {
|
||||
|
||||
function getSkinContainer() {
|
||||
if (!skinContainer) {
|
||||
skinContainer = document.querySelector('.skinContainer');
|
||||
}
|
||||
return skinContainer;
|
||||
}
|
||||
function setSkinContainerBackgroundEnabled() {
|
||||
|
||||
if (hasInternalBackdrop || hasExternalBackdrop) {
|
||||
skinContainer.classList.add('withBackdrop');
|
||||
getSkinContainer().classList.add('withBackdrop');
|
||||
} else {
|
||||
skinContainer.classList.remove('withBackdrop');
|
||||
getSkinContainer().classList.remove('withBackdrop');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -166,7 +170,7 @@
|
|||
currentLoadingBackdrop = instance;
|
||||
}
|
||||
|
||||
function setBackdrops(items) {
|
||||
function setBackdrops(items, type) {
|
||||
|
||||
var images = items.map(function (i) {
|
||||
|
||||
|
@ -207,7 +211,7 @@
|
|||
quality: 100
|
||||
});
|
||||
|
||||
setBackdrop(imgUrl);
|
||||
setBackdrop(imgUrl, type);
|
||||
});
|
||||
|
||||
} else {
|
||||
|
@ -215,11 +219,17 @@
|
|||
}
|
||||
}
|
||||
|
||||
function setBackdrop(url) {
|
||||
function setBackdrop(url, type) {
|
||||
|
||||
if (url) {
|
||||
setBackdropImage(url);
|
||||
|
||||
if (type) {
|
||||
getSkinContainer().setAttribute('data-backdroptype', type);
|
||||
} else {
|
||||
getSkinContainer().removeAttribute('data-backdroptype');
|
||||
}
|
||||
|
||||
} else {
|
||||
clearBackdrop();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue