From 0d2a2763c9c1b4eee923b55b30c180ce58c09fdc Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 16 Jan 2023 16:08:20 -0800 Subject: [PATCH] fix invalid query selector ids Signed-off-by: Arthur Lu --- scripts/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config.js b/scripts/config.js index 59ecc11..85ed56f 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -144,7 +144,7 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti sizeInput.minSize = size; sizeInput.max = 1023; // just use the next unit sizeInput.value = size; - sizeInput.id = `${busPrefix}${device}:size`; + sizeInput.id = `${busPrefix}${device}-size`; if (!diskConfig[type][busPrefix].resizable) { sizeInput.disabled = true; } @@ -158,7 +158,7 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti if (!diskConfig[type][busPrefix].resizable) { sizeUnitSelect.disabled = true; } - sizeUnitSelect.id = `${busPrefix}${device}:unit`; + sizeUnitSelect.id = `${busPrefix}${device}-unit`; sizeUnitSelect.addEventListener("change", handleUnitChange); field.append(sizeUnitSelect);