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

update now playing bar

This commit is contained in:
Luke Pulverenti 2016-02-05 12:04:46 -05:00
parent 9a643e6058
commit bbf03fdf40
2 changed files with 10 additions and 4 deletions

View file

@ -130,7 +130,7 @@
function bindEvents(elem) {
currentTimeElement = $('.nowPlayingBarCurrentTime', elem);
nowPlayingImageElement = $('.nowPlayingImage', elem);
nowPlayingImageElement = elem.querySelector('.nowPlayingImage');
nowPlayingTextElement = $('.nowPlayingBarText', elem);
nowPlayingUserData = $('.nowPlayingBarUserDataButtons', elem);
@ -522,9 +522,7 @@
currentImgUrl = url;
var imgHtml = '<img src="' + url + '" />';
nowPlayingImageElement.html(imgHtml);
ImageLoader.lazyImage(nowPlayingImageElement, url);
if (nowPlayingItem.Id) {
ApiClient.getItem(Dashboard.getCurrentUserId(), nowPlayingItem.Id).then(function (item) {