mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #1737 from Supergamer1337/playPoster
Added overlay and play functionality.
This commit is contained in:
commit
bbfbf932d3
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
import appHost from 'apphost';
|
||||
import loading from 'loading';
|
||||
import appRouter from 'appRouter';
|
||||
import itemShortcuts from 'itemShortcuts';
|
||||
import layoutManager from 'layoutManager';
|
||||
import connectionManager from 'connectionManager';
|
||||
import * as userSettings from 'userSettings';
|
||||
|
@ -758,8 +759,8 @@ import 'emby-select';
|
|||
overlayText: false,
|
||||
transition: false,
|
||||
disableIndicators: true,
|
||||
disableHoverMenu: true,
|
||||
overlayPlayButton: true,
|
||||
action: 'play',
|
||||
width: dom.getWindowSize().innerWidth * 0.25
|
||||
});
|
||||
|
||||
|
@ -1895,6 +1896,10 @@ import 'emby-select';
|
|||
playCurrentItem(this, this.getAttribute('data-mode'));
|
||||
}
|
||||
|
||||
function onPosterClick(e) {
|
||||
itemShortcuts.onClick.call(view.querySelector('.detailImageContainer'), e);
|
||||
}
|
||||
|
||||
function onInstantMixClick() {
|
||||
playbackManager.instantMix(currentItem);
|
||||
}
|
||||
|
@ -1986,6 +1991,7 @@ import 'emby-select';
|
|||
bindAll(view, '.btnCancelSeriesTimer', 'click', onCancelSeriesTimerClick);
|
||||
bindAll(view, '.btnCancelTimer', 'click', onCancelTimerClick);
|
||||
bindAll(view, '.btnDownload', 'click', onDownloadClick);
|
||||
view.querySelector('.detailImageContainer').addEventListener('click', onPosterClick);
|
||||
view.querySelector('.trackSelections').addEventListener('submit', onTrackSelectionsSubmit);
|
||||
view.querySelector('.btnSplitVersions').addEventListener('click', function () {
|
||||
splitVersions(self, view, apiClient, params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue