mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix accessing playersettingsmenu, groupSelectionMenu & playback video (Audio, Subtitles)
This commit is contained in:
parent
e302fbfb73
commit
924e5bc7b9
3 changed files with 18 additions and 9 deletions
|
@ -41,7 +41,8 @@ function showQualityMenu(player, btn) {
|
||||||
|
|
||||||
return actionsheet.show({
|
return actionsheet.show({
|
||||||
items: menuItems,
|
items: menuItems,
|
||||||
positionTo: btn
|
positionTo: btn,
|
||||||
|
enableHistory: false
|
||||||
}).then(function (id) {
|
}).then(function (id) {
|
||||||
const bitrate = parseInt(id);
|
const bitrate = parseInt(id);
|
||||||
if (bitrate !== selectedBitrate) {
|
if (bitrate !== selectedBitrate) {
|
||||||
|
@ -77,7 +78,8 @@ function showRepeatModeMenu(player, btn) {
|
||||||
|
|
||||||
return actionsheet.show({
|
return actionsheet.show({
|
||||||
items: menuItems,
|
items: menuItems,
|
||||||
positionTo: btn
|
positionTo: btn,
|
||||||
|
enableHistory: false
|
||||||
}).then(function (mode) {
|
}).then(function (mode) {
|
||||||
if (mode) {
|
if (mode) {
|
||||||
playbackManager.setRepeatMode(mode, player);
|
playbackManager.setRepeatMode(mode, player);
|
||||||
|
@ -138,7 +140,8 @@ function showAspectRatioMenu(player, btn) {
|
||||||
|
|
||||||
return actionsheet.show({
|
return actionsheet.show({
|
||||||
items: menuItems,
|
items: menuItems,
|
||||||
positionTo: btn
|
positionTo: btn,
|
||||||
|
enableHistory: false
|
||||||
}).then(function (id) {
|
}).then(function (id) {
|
||||||
if (id) {
|
if (id) {
|
||||||
playbackManager.setAspectRatio(id, player);
|
playbackManager.setAspectRatio(id, player);
|
||||||
|
@ -160,7 +163,8 @@ function showPlaybackRateMenu(player, btn) {
|
||||||
|
|
||||||
return actionsheet.show({
|
return actionsheet.show({
|
||||||
items: menuItems,
|
items: menuItems,
|
||||||
positionTo: btn
|
positionTo: btn,
|
||||||
|
enableHistory: false
|
||||||
}).then(function (id) {
|
}).then(function (id) {
|
||||||
if (id) {
|
if (id) {
|
||||||
playbackManager.setPlaybackRate(id, player);
|
playbackManager.setPlaybackRate(id, player);
|
||||||
|
@ -237,7 +241,8 @@ function showWithUser(options, player, user) {
|
||||||
|
|
||||||
return actionsheet.show({
|
return actionsheet.show({
|
||||||
items: menuItems,
|
items: menuItems,
|
||||||
positionTo: options.positionTo
|
positionTo: options.positionTo,
|
||||||
|
enableHistory: false
|
||||||
}).then(function (id) {
|
}).then(function (id) {
|
||||||
return handleSelectedOption(id, options, player);
|
return handleSelectedOption(id, options, player);
|
||||||
});
|
});
|
||||||
|
|
|
@ -63,7 +63,8 @@ class GroupSelectionMenu {
|
||||||
items: menuItems,
|
items: menuItems,
|
||||||
positionTo: button,
|
positionTo: button,
|
||||||
resolveOnClick: true,
|
resolveOnClick: true,
|
||||||
border: true
|
border: true,
|
||||||
|
enableHistory: false
|
||||||
};
|
};
|
||||||
|
|
||||||
actionsheet.show(menuOptions).then(function (id) {
|
actionsheet.show(menuOptions).then(function (id) {
|
||||||
|
@ -132,7 +133,8 @@ class GroupSelectionMenu {
|
||||||
items: menuItems,
|
items: menuItems,
|
||||||
positionTo: button,
|
positionTo: button,
|
||||||
resolveOnClick: true,
|
resolveOnClick: true,
|
||||||
border: true
|
border: true,
|
||||||
|
enableHistory: false
|
||||||
};
|
};
|
||||||
|
|
||||||
actionsheet.show(menuOptions).then(function (id) {
|
actionsheet.show(menuOptions).then(function (id) {
|
||||||
|
|
|
@ -902,7 +902,8 @@ import { appRouter } from '../../../components/appRouter';
|
||||||
actionsheet.show({
|
actionsheet.show({
|
||||||
items: menuItems,
|
items: menuItems,
|
||||||
title: globalize.translate('Audio'),
|
title: globalize.translate('Audio'),
|
||||||
positionTo: positionTo
|
positionTo: positionTo,
|
||||||
|
enableHistory: false
|
||||||
}).then(function (id) {
|
}).then(function (id) {
|
||||||
const index = parseInt(id);
|
const index = parseInt(id);
|
||||||
|
|
||||||
|
@ -948,7 +949,8 @@ import { appRouter } from '../../../components/appRouter';
|
||||||
actionsheet.show({
|
actionsheet.show({
|
||||||
title: globalize.translate('Subtitles'),
|
title: globalize.translate('Subtitles'),
|
||||||
items: menuItems,
|
items: menuItems,
|
||||||
positionTo: positionTo
|
positionTo: positionTo,
|
||||||
|
enableHistory: false
|
||||||
}).then(function (id) {
|
}).then(function (id) {
|
||||||
const index = parseInt(id);
|
const index = parseInt(id);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue