forked from 0x2620/pandora
fix info in item documents panel
This commit is contained in:
parent
5024a2ba0c
commit
945ac98dad
1 changed files with 2 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue