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; }