fix infoview

This commit is contained in:
j 2019-06-12 09:22:01 +01:00
parent 2ae26e4474
commit a62204dc06

View file

@ -751,10 +751,11 @@ pandora.ui.infoView = function(data, isMixed) {
function formatValue(key, value) { function formatValue(key, value) {
var ret; var ret;
var itemKey = Ox.getObjectById(pandora.site.itemKeys, key)
if (key == 'year') { if (key == 'year') {
ret = formatLink(value, 'year'); ret = formatLink(value, 'year');
} else if ( } else if (
specialListKeys.indexOf(key) > -1 && Ox.getObjectById(pandora.site.itemKeys, key).type[0] == 'date' specialListKeys.indexOf(key) > -1 && itemKey && itemKey.type[0] == 'date'
) { ) {
ret = value.split('; ').map(function(date) { ret = value.split('; ').map(function(date) {
date = cleanupDate(date) date = cleanupDate(date)