From 03cc1ec3c911d12737c8479038aa76800b0415b8 Mon Sep 17 00:00:00 2001 From: gator Date: Wed, 23 Sep 2026 12:30:22 +0000 Subject: [PATCH] Direct edit sends the description as what_happens --- trailer.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;