1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update action sheet

This commit is contained in:
Luke Pulverenti 2015-10-18 17:41:39 -04:00
parent 81d936ff1c
commit 62e03ef0be
4 changed files with 125 additions and 104 deletions

View file

@ -2577,9 +2577,19 @@
options.imageType = "thumb";
var itemId = item.ImageTags && item.ImageTags.Thumb ? item.Id : item.ParentThumbItemId;
if (item.ImageTags && item.ImageTags.Thumb) {
return itemId ? self.getImageUrl(itemId, options) : null;
options.tag = item.ImageTags.Thumb;
return self.getImageUrl(item.Id, options);
}
else if (item.ParentThumbItemId) {
options.tag = item.ImageTags.ParentThumbImageTag;
return self.getImageUrl(item.ParentThumbItemId, options);
} else {
return null;
}
};
/**