mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update sliders
This commit is contained in:
parent
8dc50cdc71
commit
462e692de5
13 changed files with 156 additions and 30 deletions
|
@ -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('');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue