Fix Script Chaining selector bugs in genScriptChainingValue
Fixed all three selectors to use rowIdx from dataset.berIdx:
- 'chaining-][value="first"]' → 'chaining-{rowIdx}[value="first"]'
- 'chaining][value="intermediary"]' → 'chaining-{rowIdx}[value="intermediary"]'
- Already fixed: 'chaining]-last' → 'chaining-{rowIdx}-last'
Now bits 0/1/2 correctly set based on First/Intermediary/Last checkboxes.
Frontend: frontend/index.html
Tests: 14 Node green
This commit is contained in:
+3
-2
@@ -2382,8 +2382,9 @@ function generateScriptIdHint(rowIdx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function genScriptChainingValue(row, tag) {
|
function genScriptChainingValue(row, tag) {
|
||||||
const firstRadio = row.querySelector(`input[name="chaining-"][value="first"]`);
|
const rowIdx = row.dataset.berIdx;
|
||||||
const intermediateRadio = row.querySelector(`input[name="chaining-"][value="intermediary"]`);
|
const firstRadio = row.querySelector(`input[name="chaining-${rowIdx}"][value="first"]`);
|
||||||
|
const intermediateRadio = row.querySelector(`input[name="chaining-${rowIdx}"][value="intermediary"]`);
|
||||||
const lastCheckbox = row.querySelector(`input[name="chaining-${rowIdx}-last"]`);
|
const lastCheckbox = row.querySelector(`input[name="chaining-${rowIdx}-last"]`);
|
||||||
const scriptIdInput = row.querySelector('.chaining-script-id');
|
const scriptIdInput = row.querySelector('.chaining-script-id');
|
||||||
const additionalInput = row.querySelector('.chaining-additional');
|
const additionalInput = row.querySelector('.chaining-additional');
|
||||||
|
|||||||
Reference in New Issue
Block a user