From 945ac98dad8575eb7c014fd4753dcc9dc493df9b Mon Sep 17 00:00:00 2001 From: j Date: Sun, 13 Sep 2020 11:06:22 +0200 Subject: [PATCH] fix info in item documents panel --- static/js/documentsPanel.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/static/js/documentsPanel.js b/static/js/documentsPanel.js index e1663aba..2337352b 100644 --- a/static/js/documentsPanel.js +++ b/static/js/documentsPanel.js @@ -810,9 +810,8 @@ pandora.ui.documentsPanel = function(options) { item: function(data, sort, size) { var sortKey = sort[0].key, infoKey = sortKey == 'title' ? 'extension' : sortKey, - info = ( - Ox.getObjectById(pandora.site.documentKeys, infoKey).format || Ox.identity - )(data[infoKey]), + key = Ox.getObjectById(pandora.site.documentKeys, infoKey), + info = pandora.formatDocumentKey(key, data, size), size = size || 128; return { height: Math.round(data.ratio > 1 ? size / data.ratio : size),