Tracked objects: the author can say which shots show it

This commit is contained in:
gator 2026-09-19 19:17:50 +00:00
parent 25e1fd462b
commit 7ce8085384

View file

@ -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 '<div class="ch"><div class="sheets">' + (pics || '<i class="lw">not drawn yet</i>') + '</div>'
+ '<b>' + esc(p.name || p.id) + '</b><span class="vo">in shots ' + esc(where) + '</span>'
+ '<b>' + esc(p.name || p.id) + '</b><span class="vo">seen in shots <input type="text" style="width:12em;font-size:12px" data-propshotlist="'
+ esc(p.id) + '" value="' + esc(where) + '"></span>'
+ '<textarea rows="5" style="width:100%;font-size:12px;margin-top:6px" data-propdesc="' + esc(p.id) + '">'
+ esc(p.description || "") + '</textarea>'
+ (busy ? '' : '<div class="tools" style="margin-top:6px">'
@ -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;
}