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

update sliders

This commit is contained in:
Luke Pulverenti 2015-06-27 19:18:09 -04:00
parent 8dc50cdc71
commit 462e692de5
13 changed files with 156 additions and 30 deletions

View file

@ -175,6 +175,11 @@
elem = $(getNowPlayingBarHtml()).insertBefore('#footerNotifications').trigger('create');
if ($.browser.safari && $.browser.mobile) {
// Not handled well here. The wrong elements receive events, bar doesn't update quickly enough, etc.
elem.addClass('noMediaProgress');
}
bindEvents(elem);
return elem;
@ -190,7 +195,7 @@
function updatePlayerState(state) {
if (state.NowPlayingItem && !$($.mobile.activePage).hasClass('nowPlayingPage')) {
if (state.NowPlayingItem) {
showNowPlayingBar();
} else {
hideNowPlayingBar();
@ -383,6 +388,8 @@
ApiClient.getItem(Dashboard.getCurrentUserId(), nowPlayingItem.Id).done(function (item) {
nowPlayingUserData.html(LibraryBrowser.getUserDataIconsHtml(item, false));
});
} else {
nowPlayingUserData.html('');
}
}