From be182d26d633da77e4c63fbce46e5f582a5ebb4c Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 14 May 2021 17:05:38 +0200 Subject: [PATCH] Adjust item street address display --- static/js/map.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/map.js b/static/js/map.js index 5ab8494..a34dcaf 100644 --- a/static/js/map.js +++ b/static/js/map.js @@ -286,6 +286,11 @@ function build_item_detail(item, tag_or_key_list) { popup += `
${isa_label} (${isa_qid})`; } } + if (item.street_address && item.street_address.length) { + popup += "
street address"; + popup += `
${item.street_address[0]}`; + } + popup += '
' if (tag_or_key_list && tag_or_key_list.length) { @@ -295,11 +300,6 @@ function build_item_detail(item, tag_or_key_list) { } } - if (item.street_address && item.street_address.length) { - popup += "
street address"; - popup += `
${item.street_address[0]["text"]}`; - } - popup += "
"; return popup;