[object Object]

← back to Commercialrealestate

condos viewer: make list-view sticky-column city drillable too (Cody gate — was dead text); clarify drill-handler comment

64d69b976a4ac20576ea5b44f3b9f51d4f528851 · 2026-08-03 09:50:15 -0700 · Steve Abrams

Files touched

Diff

commit 64d69b976a4ac20576ea5b44f3b9f51d4f528851
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon Aug 3 09:50:15 2026 -0700

    condos viewer: make list-view sticky-column city drillable too (Cody gate — was dead text); clarify drill-handler comment
---
 public/condos.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/public/condos.html b/public/condos.html
index f7d1179..f73be44 100644
--- a/public/condos.html
+++ b/public/condos.html
@@ -347,7 +347,7 @@ function dbList(rows){
     const sc=(LSORTKEY===f.k)?(LSORTDIR>0?' asc':' desc'):'';
     return `<th data-k="${f.k}" draggable="true" title="Drag to reorder · click to sort" class="dragcol${sc}">${esc(f.l)}</th>`;
   }).join('');
-  const body=rows.map(c=>`<tr data-id="${c.id}"><td class="stick"><button class="starbtn ${SHORT.has(c.id)?'on':''}" data-star="${c.id}" aria-label="${SHORT.has(c.id)?'Remove from':'Add to'} shortlist" aria-pressed="${SHORT.has(c.id)}" title="Shortlist">★</button> <span class="la">${esc(c.project_name||c.address||'Condo')}</span><div class="lc">${esc(c.address||'')}${c.city?', '+esc(c.city):''}</div></td>`
+  const body=rows.map(c=>`<tr data-id="${c.id}"><td class="stick"><button class="starbtn ${SHORT.has(c.id)?'on':''}" data-star="${c.id}" aria-label="${SHORT.has(c.id)?'Remove from':'Add to'} shortlist" aria-pressed="${SHORT.has(c.id)}" title="Shortlist">★</button> <span class="la">${esc(c.project_name||c.address||'Condo')}</span><div class="lc">${esc(c.address||'')}${c.city?', '+drillSpan('city',c.city):''}</div></td>`
     +cols.map(f=>`<td>${fcell(c,f)}</td>`).join('')+'</tr>').join('');
   return `<div class="listwrap"><table class="listtbl" data-no-sort><thead><tr>${head}</tr></thead><tbody>${body}</tbody></table></div>`;
 }
@@ -506,7 +506,7 @@ document.addEventListener('keydown',e=>{ if(e.key==='Escape') $('#ov').classList
 // row/card click opens detail (but not when the click is a star, header, or link)
 $('#grid').addEventListener('click',e=>{
   const dr=e.target.closest('[data-drill]');
-  if(dr){ e.stopPropagation(); applyDrill(dr.dataset.drill,dr.dataset.val); return; }   // datum drill → filter, not modal
+  if(dr){ e.stopPropagation(); applyDrill(dr.dataset.drill,dr.dataset.val); return; }   // datum drill → filter; the return (same listener) suppresses the modal, stopPropagation guards future sibling listeners
   if(e.target.closest('[data-star]')||e.target.closest('th')||e.target.tagName==='A'||e.target.tagName==='BUTTON'||e.target.tagName==='TEXTAREA'||e.target.closest('.notewrap')) return;
   const row=e.target.closest('tr[data-id]')||e.target.closest('.condo');
   if(row){ let id=row.dataset.id; if(id==null){ const st=row.querySelector('[data-star]'); id=st&&st.dataset.star; } if(id!=null) openDetail(id); }

← aa830f9 condos viewer: city + firm datums drill to filtered view (no  ·  back to Commercialrealestate  ·  broker-grid: 'Added' (created_at) admin-card column now rend 8b81a61 →