1
0
Fork 0
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:
Luke Pulverenti 2016-08-24 23:07:31 -04:00
parent 663564f766
commit 48029f4dc7
9 changed files with 49 additions and 22 deletions

View file

@ -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') {