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

removed dead code from librarybrowser.js

This commit is contained in:
Luke Pulverenti 2016-07-30 14:37:38 -04:00
parent 9a4988ecbb
commit 7570243d42
20 changed files with 224 additions and 302 deletions

View file

@ -61,6 +61,27 @@
});
}
function getImageUrl(item, type, index, options) {
options = options || {};
options.type = type;
options.index = index;
if (type == 'Backdrop') {
options.tag = item.BackdropImageTags[index];
} else if (type == 'Screenshot') {
options.tag = item.ScreenshotImageTags[index];
} else if (type == 'Primary') {
options.tag = item.PrimaryImageTag || item.ImageTags[type];
} else {
options.tag = item.ImageTags[type];
}
// For search hints
return ApiClient.getScaledImageUrl(item.Id || item.ItemId, options);
}
function renderImages(page, item, images, imageProviders, elem) {
var html = '';
@ -74,7 +95,7 @@
var height = 150;
html += '<div style="height:' + height + 'px;vertical-align:top;background-repeat:no-repeat;background-position:center bottom;background-size:contain;" class="lazy" data-src="' + LibraryBrowser.getImageUrl(currentItem, image.ImageType, image.ImageIndex, { height: height }) + '"></div>';
html += '<div style="height:' + height + 'px;vertical-align:top;background-repeat:no-repeat;background-position:center bottom;background-size:contain;" class="lazy" data-src="' + getImageUrl(currentItem, image.ImageType, image.ImageIndex, { height: height }) + '"></div>';
html += '<div class="editorTileFooter">';