added banner to the gallery
This commit is contained in:
@@ -986,6 +986,11 @@
|
||||
|
||||
var imageTags = item.ImageTags || {};
|
||||
|
||||
if (imageTags.Banner) {
|
||||
|
||||
html += LibraryBrowser.createGalleryImage(item.Id, "Banner", imageTags.Banner);
|
||||
}
|
||||
|
||||
if (imageTags.Logo) {
|
||||
|
||||
html += LibraryBrowser.createGalleryImage(item.Id, "Logo", imageTags.Logo);
|
||||
@@ -1031,7 +1036,7 @@
|
||||
return html;
|
||||
},
|
||||
|
||||
createGalleryImage: function (itemId, type, tag, index) {
|
||||
createGalleryImage: function (itemId, type, tag, index) {
|
||||
|
||||
var downloadWidth = 400;
|
||||
var lightboxWidth = 800;
|
||||
|
||||
@@ -93,9 +93,7 @@
|
||||
|
||||
function renderGallery(page, item) {
|
||||
|
||||
var html = '';
|
||||
|
||||
html += LibraryBrowser.getGalleryHtml(item);
|
||||
var html = LibraryBrowser.getGalleryHtml(item);
|
||||
|
||||
$('#galleryContent', page).html(html).trigger('create');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user