From ae98279ab02b2c7d6c82fb598778a8cabaee7b3b Mon Sep 17 00:00:00 2001 From: Sahib Bhai Date: Thu, 28 Nov 2024 08:54:08 -0800 Subject: [PATCH] Popup: change listing URL hyperlink from mls # to full street address heading --- assets/javascript/popup.js | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/assets/javascript/popup.js b/assets/javascript/popup.js index a44b2bd1..fc4b0aca 100644 --- a/assets/javascript/popup.js +++ b/assets/javascript/popup.js @@ -20,19 +20,15 @@ window.dash_props = Object.assign({}, window.dash_props, { function getListingUrlBlock(data) { if (!data.listing_url) { return ` - - Listing ID (MLS#) - ${data.mls_number} - +
+
${data.full_street_address}
+
`; } return ` - - Listing ID (MLS#) - - ${data.mls_number} - - +
+
${data.full_street_address}
+
`; } @@ -63,15 +59,16 @@ window.dash_props = Object.assign({}, window.dash_props, { return `
${imageRow} -
-
${data.full_street_address}
-
+ ${listingUrlBlock} - ${listingUrlBlock} + + + +
Listed Date ${formatDate(data.listed_date)}
Listing ID (MLS#)${data.mls_number}
List Office Phone ${phoneNumberBlock}