1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-03-14 01:04:42 -04:00
parent 50a27ba0b4
commit ed63dd2039
7 changed files with 18 additions and 73 deletions

View file

@ -1,12 +1,12 @@
define(['browser', 'css!./style'], function (browser) {
function enableAnimation() {
function enableAnimation(elem) {
if (browser.mobile) {
return false;
}
return true;
return elem.animate;
}
function backdrop() {
@ -31,7 +31,7 @@
parent.appendChild(backdropImage);
if (!enableAnimation()) {
if (!enableAnimation(backdropImage)) {
if (existingBackdropImage && existingBackdropImage.parentNode) {
existingBackdropImage.parentNode.removeChild(existingBackdropImage);
}