Film it again asks for another take, and says so
This commit is contained in:
parent
a26e9aed6d
commit
320e06b0c9
1 changed files with 10 additions and 2 deletions
12
trailer.html
12
trailer.html
|
|
@ -1276,8 +1276,16 @@
|
|||
}
|
||||
if ((el = hit("data-filmone"))) {
|
||||
el.disabled = true;
|
||||
r = await act("film_one_shot_now", { draft_id: CUR, shot_id: el.getAttribute("data-filmone") });
|
||||
if (r) await refresh(); return;
|
||||
// "Film it again" means ANOTHER TAKE. Without `force` the worker sees an
|
||||
// unchanged request, correctly notes it would send identical bytes, and
|
||||
// does nothing - so the button an author presses to get a better take
|
||||
// gave them the same one and no explanation.
|
||||
var fsid1 = el.getAttribute("data-filmone");
|
||||
var had = (PKG.shots || []).some(function (x) { return String(x.id) === fsid1 && x.clip_url; });
|
||||
r = await act("film_one_shot_now", { draft_id: CUR, shot_id: fsid1, force: had });
|
||||
if (r) { showMsg("msg", (had ? "Filming another take of shot " : "Filming shot ") + fsid1
|
||||
+ ", about $" + r.usd + ". It takes a minute or two.", "ok"); await refresh(); }
|
||||
return;
|
||||
}
|
||||
if ((el = hit("data-delete"))) {
|
||||
if (!confirm("Remove shot " + el.getAttribute("data-delete") + " from this trailer?")) return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue