Fix Script Chaining Last Script checkbox selector typo
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
This commit is contained in:
+1
-1
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user