From 2df0ff50a0006abb7f13e95c867e925f87ef9881 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 17 Nov 2023 09:26:16 +0100 Subject: [PATCH] format links --- static/js/infoView.fcra.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/static/js/infoView.fcra.js b/static/js/infoView.fcra.js index 7193851..2c9482e 100644 --- a/static/js/infoView.fcra.js +++ b/static/js/infoView.fcra.js @@ -644,13 +644,12 @@ pandora.ui.infoView = function(data, isMixed) { var ret; if (key == 'date' && (!value || value.split('-').length < 4)) { ret = pandora.formatDate(value); - } else if (listKeys.indexOf(key) > -1) { - ret = value.split(', '); } else if (key == 'links') { ret = value.split(', ').map(function(link) { return '' + Ox.parseURL(link).host + ''; }).join(', '); - + } else if (listKeys.indexOf(key) > -1) { + ret = value.split(', '); } else { ret = value; }