diff --git a/trailer.html b/trailer.html index 74063aa..b7c695d 100644 --- a/trailer.html +++ b/trailer.html @@ -1721,8 +1721,8 @@ if ((el = hit("data-directedit"))) { e.preventDefault(); EDITING = "direct:" + el.getAttribute("data-directedit"); openTab(CUR); return; } if ((el = hit("data-directsave"))) { var dsid = el.getAttribute("data-directsave"), payload = { draft_id: CUR, shot_id: dsid }; - ["opening_image", "action", "closing_image", "camera"].forEach(function (k) { var t = document.querySelector('[data-direct="' + k + '"]'); if (t) payload[k] = t.value; }); - if (String(payload.action || "").trim().length < 40) { showMsg("msg", "The description needs a few sentences."); return; } + ["opening_image", "action", "closing_image", "camera"].forEach(function (k) { var t = document.querySelector('[data-direct="' + k + '"]'); if (t) payload[k === "action" ? "what_happens" : k] = t.value; }); + if (String(payload.what_happens || "").trim().length < 40) { showMsg("msg", "The description needs a few sentences."); return; } el.disabled = true; r = await act("edit_shot", payload); EDITING = null;