From 7ce8085384831b9e523dd8a5a59dd8189403a0d0 Mon Sep 17 00:00:00 2001 From: gator Date: Sat, 19 Sep 2026 19:17:50 +0000 Subject: [PATCH] Tracked objects: the author can say which shots show it --- trailer.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/trailer.html b/trailer.html index a21f9f9..8599d5f 100644 --- a/trailer.html +++ b/trailer.html @@ -887,7 +887,8 @@ var drawn = (p.shots || []).filter(function (x) { return (PKG.shots || []).some(function (q) { return String(q.id) === String(x.id) && q.opening_url; }); }).length; return '
' + (pics || 'not drawn yet') + '
' - + '' + esc(p.name || p.id) + 'in shots ' + esc(where) + '' + + '' + esc(p.name || p.id) + 'seen in shots ' + '' + (busy ? '' : '
' @@ -1522,7 +1523,9 @@ var ppid = el.getAttribute("data-propsave"); var pta = document.querySelector('[data-propdesc="' + ppid + '"]'); el.disabled = true; - r = await act("set_prop", { draft_id: CUR, prop_id: ppid, description: pta ? pta.value : "", force: true }); + var psl = document.querySelector('[data-propshotlist="' + ppid + '"]'); + r = await act("set_prop", { draft_id: CUR, prop_id: ppid, description: pta ? pta.value : "", + shots: psl ? psl.value : null, force: true }); if (r) { showMsg("msg", "Drawing the reference picture, about $" + r.usd + ". When it looks right, redraw the shots that show it.", "ok"); await refresh(); } return; }