pass size

This commit is contained in:
j 2017-06-09 12:33:27 +02:00
parent 38341a43c6
commit 8a83ba5bb8
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ pandora.ui.collection = function() {
var sortKey = sort[0].key, var sortKey = sort[0].key,
infoKey = sortKey == 'title' ? 'extension' : sortKey, infoKey = sortKey == 'title' ? 'extension' : sortKey,
key = Ox.getObjectById(pandora.site.documentKeys, infoKey), key = Ox.getObjectById(pandora.site.documentKeys, infoKey),
info = pandora.formatDocumentKey(key, data), info = pandora.formatDocumentKey(key, data, size),
size = size || 128; size = size || 128;
return { return {
height: Math.round(data.ratio > 1 ? size / data.ratio : size), height: Math.round(data.ratio > 1 ? size / data.ratio : size),

View file

@ -1080,7 +1080,7 @@ pandora.exitFullscreen = function() {
} }
}; };
pandora.formatDocumentKey = function(key, data) { pandora.formatDocumentKey = function(key, data, size) {
var value; var value;
if (key.format) { if (key.format) {
value = ( value = (