mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix folders view
This commit is contained in:
parent
663564f766
commit
48029f4dc7
9 changed files with 49 additions and 22 deletions
|
@ -79,15 +79,15 @@ define(['playbackManager', 'inputManager', 'connectionManager', 'embyRouter', 'g
|
|||
});
|
||||
}
|
||||
|
||||
function showItem(options) {
|
||||
function showItem(item, options) {
|
||||
|
||||
if (options.Type == 'Photo') {
|
||||
if (item.Type == 'Photo') {
|
||||
|
||||
showSlideshow(options.Id, options.ServerId);
|
||||
showSlideshow(item.Id, item.ServerId);
|
||||
return;
|
||||
}
|
||||
|
||||
embyRouter.showItem(options);
|
||||
embyRouter.showItem(item, options);
|
||||
}
|
||||
|
||||
function getItem(button) {
|
||||
|
@ -210,7 +210,10 @@ define(['playbackManager', 'inputManager', 'connectionManager', 'embyRouter', 'g
|
|||
var type = item.Type;
|
||||
|
||||
if (action == 'link') {
|
||||
showItem(item);
|
||||
|
||||
showItem(item, {
|
||||
context: card.getAttribute('data-context')
|
||||
});
|
||||
}
|
||||
|
||||
else if (action == 'instantmix') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue