From e8a8ef3d1bd9897e6f16fb96961f42f7baf55a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Wed, 19 Aug 2026 23:44:33 +0300 Subject: [PATCH] Fix Script Chaining Last Script checkbox selector typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed malformed querySelector in genScriptChainingValue: - 'chaining-]-last' → 'chaining-{rowIdx}-last' - Last Script checkbox (bit 2) now correctly contributes to flags byte - First+Last = 0x05, Intermediary+Last = 0x06, Last alone = 0x04 Frontend: frontend/index.html Tests: 14 Node green --- frontend/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/index.html b/frontend/index.html index a3efe4d..4062c17 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2384,7 +2384,7 @@ function generateScriptIdHint(rowIdx) { function genScriptChainingValue(row, tag) { const firstRadio = row.querySelector(`input[name="chaining-"][value="first"]`); const intermediateRadio = row.querySelector(`input[name="chaining-"][value="intermediary"]`); - const lastCheckbox = row.querySelector(`input[name="chaining-]-last"]`); + const lastCheckbox = row.querySelector(`input[name="chaining-${rowIdx}-last"]`); const scriptIdInput = row.querySelector('.chaining-script-id'); const additionalInput = row.querySelector('.chaining-additional');