mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Changed from using sortOptions to using already implemented queryOptions
Null verification for parentid on shortcuts.js itemContextMenu is now obeying to sorting
This commit is contained in:
parent
580ad5f1a8
commit
ee791f9d0d
5 changed files with 70 additions and 47 deletions
|
@ -180,7 +180,7 @@ function executeAction(card, target, action) {
|
|||
|
||||
const itemsContainer = dom.parentWithClass(card, 'itemsContainer');
|
||||
|
||||
const sortParentId = 'items-' + (item.IsFolder ? item.Id : itemsContainer.getAttribute('data-parentid')) + '-Folder';
|
||||
const sortParentId = 'items-' + (item.IsFolder ? item.Id : itemsContainer?.getAttribute('data-parentid')) + '-Folder';
|
||||
|
||||
const serverId = item.ServerId;
|
||||
const type = item.Type;
|
||||
|
@ -211,7 +211,7 @@ function executeAction(card, target, action) {
|
|||
ids: [playableItemId],
|
||||
startPositionTicks: startPositionTicks,
|
||||
serverId: serverId,
|
||||
sortOptions: userSettings.getSortValues(sortParentId)
|
||||
queryOptions: userSettings.getSortValuesLegacy(sortParentId, 'SortName')
|
||||
});
|
||||
} else {
|
||||
console.warn('Unable to play item', item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue