From 8a83ba5bb898ae3ed4aa051d804c9981d332a579 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 9 Jun 2017 12:33:27 +0200 Subject: [PATCH] pass size --- static/js/collection.js | 2 +- static/js/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/collection.js b/static/js/collection.js index 26a395602..8eb74f9b6 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 c423327f6..522c52945 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 = (