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

added banner to the gallery

This commit is contained in:
Luke Pulverenti 2013-04-15 21:15:34 -04:00
parent 2b53479479
commit 4ebe92f997
2 changed files with 7 additions and 4 deletions

View file

@ -986,6 +986,11 @@
var imageTags = item.ImageTags || {}; var imageTags = item.ImageTags || {};
if (imageTags.Banner) {
html += LibraryBrowser.createGalleryImage(item.Id, "Banner", imageTags.Banner);
}
if (imageTags.Logo) { if (imageTags.Logo) {
html += LibraryBrowser.createGalleryImage(item.Id, "Logo", imageTags.Logo); html += LibraryBrowser.createGalleryImage(item.Id, "Logo", imageTags.Logo);
@ -1031,7 +1036,7 @@
return html; return html;
}, },
createGalleryImage: function (itemId, type, tag, index) { createGalleryImage: function (itemId, type, tag, index) {
var downloadWidth = 400; var downloadWidth = 400;
var lightboxWidth = 800; var lightboxWidth = 800;

View file

@ -93,9 +93,7 @@
function renderGallery(page, item) { function renderGallery(page, item) {
var html = ''; var html = LibraryBrowser.getGalleryHtml(item);
html += LibraryBrowser.getGalleryHtml(item);
$('#galleryContent', page).html(html).trigger('create'); $('#galleryContent', page).html(html).trigger('create');
} }