From 505e300e6051fceb7a9c47ae2544ed35589b2b9b Mon Sep 17 00:00:00 2001 From: j Date: Fri, 8 Mar 2024 11:53:08 +0000 Subject: [PATCH] make them nameKeys --- static/js/documentInfoView.amp.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/static/js/documentInfoView.amp.js b/static/js/documentInfoView.amp.js index a9ff5f3..6aca068 100644 --- a/static/js/documentInfoView.amp.js +++ b/static/js/documentInfoView.amp.js @@ -18,19 +18,19 @@ pandora.ui.documentInfoView = function(data, isMixed) { iconHeight = iconRatio < 1 ? iconSize : Math.round(iconSize / iconRatio), iconLeft = iconSize == 256 ? Math.floor((iconSize - iconWidth) / 2) : 0, margin = 16, - nameKeys = pandora.site.documentKeys.filter(function(key) { - return key.sortType == 'person'; - }).map(function(key) { - return key.id; - }), - listKeys = [ + nameKeys = [ "group", "source" ].concat(pandora.site.documentKeys.filter(function(key) { + return key.sortType == 'person'; + }).map(function(key) { + return key.id; + })), + listKeys = pandora.site.documentKeys.filter(function(key) { return Ox.isArray(key.type); }).map(function(key){ return key.id; - })), + }), statisticsWidth = 128, $bar = Ox.Bar({size: 16})