diff --git a/trailer.html b/trailer.html index b496e76..7c8c769 100644 --- a/trailer.html +++ b/trailer.html @@ -1603,11 +1603,12 @@ + (s.rough ? '
Last time you asked for: ' + esc(String(s.rough).slice(0, 240)) + '
' : '') + '
' + + '' + '
'; } else { tools = (s.make_error ? '
' + esc(s.make_error) + '
' : '') + '' + + (s.clip_url ? 'Make this shot again' : (s.opening_url && !s.picture_stale ? 'Make this shot (film the picture)' : 'Make this shot')) + ' · about $' + ((s.opening_url && !s.picture_stale ? 0 : 0.14) + filmCost(s)).toFixed(2) + '' + '' + '' @@ -1651,9 +1652,6 @@ + 'the last take - same pictures, same words, same voices - so it was not filmed again and nothing ' + 'was charged.

' : '') - + '' + ''; } @@ -1672,11 +1670,8 @@ if ((el = hit("data-make"))) { el.disabled = true; var msid = el.getAttribute("data-make"); - var nta = document.querySelector('[data-note="' + msid + '"]'); - var mnote = nta ? nta.value.trim() : (NOTES[msid] || ""); - r = await act("make_shot", { draft_id: CUR, shot_id: msid, note: mnote }); + r = await act("make_shot", { draft_id: CUR, shot_id: msid }); if (r) { - if (mnote) { await api("add_shot_note", { draft_id: CUR, shot_id: msid, note: "" }); NOTES[msid] = ""; } showMsg("msg", "Making shot " + msid + (r.rewrite ? ": rewriting from your note, then the picture, then the clip" : r.redraw ? ": picture first, then the clip" : ": filming the picture") + " - about $" + r.usd + ", roughly " + r.minutes + " minutes. The page refreshes itself.", "ok"); await refresh(); } else el.disabled = false; return; @@ -1758,6 +1753,16 @@ r = await act("write_shot", { draft_id: CUR, shot_id: el.getAttribute("data-rewrite"), rough: rw }); EDITING = null; if (r) await refresh(); return; } + if ((el = hit("data-rewritemake"))) { + var rw2 = document.getElementById("rough").value.trim(); + if (rw2.length < 20) { showMsg("msg", "Say what should change."); return; } + el.disabled = true; + var rmid = el.getAttribute("data-rewritemake"); + r = await act("make_shot", { draft_id: CUR, shot_id: rmid, note: rw2 }); + EDITING = null; + if (r) { showMsg("msg", "Shot " + rmid + ": rewriting from your words, then the picture, then the clip - about $" + r.usd + ", roughly " + r.minutes + " minutes. The page refreshes itself.", "ok"); await refresh(); } + return; + } if ((el = hit("data-drawone"))) { el.disabled = true; r = await act("draw_one_shot", { draft_id: CUR, shot_id: el.getAttribute("data-drawone") });