diff --git a/static/js/collection.js b/static/js/collection.js index 26a39560..8eb74f9b 100644 --- a/static/js/collection.js +++ b/static/js/collection.js @@ -89,7 +89,7 @@ pandora.ui.collection = function() { var sortKey = sort[0].key, infoKey = sortKey == 'title' ? 'extension' : sortKey, key = Ox.getObjectById(pandora.site.documentKeys, infoKey), - info = pandora.formatDocumentKey(key, data), + info = pandora.formatDocumentKey(key, data, size), size = size || 128; return { height: Math.round(data.ratio > 1 ? size / data.ratio : size), diff --git a/static/js/utils.js b/static/js/utils.js index c423327f..522c5294 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1080,7 +1080,7 @@ pandora.exitFullscreen = function() { } }; -pandora.formatDocumentKey = function(key, data) { +pandora.formatDocumentKey = function(key, data, size) { var value; if (key.format) { value = (