From 54e09d8b318eff684886723121db319aac280ab7 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 19 Dec 2022 18:14:00 -0800 Subject: [PATCH] use innerHTML --- scripts/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config.js b/scripts/config.js index ca0bd70..f457582 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -14,8 +14,8 @@ async function populateForm (node, type, vmid) { let config = await request(`/nodes/${node}/${type}/${vmid}/config`); console.log(config); - addFormLine("cores", {innerText: "Cores:"}, {type: "number", value: config.data.cores, min: 1, max: 8192}); - addFormLine("memory", {innerText: "Memory"}, {type: "number", value: config.data.memory, min: 16}); + addFormLine("cores", {innerHTML: "Cores:"}, {type: "number", value: config.data.cores, min: 1, max: 8192}); + addFormLine("memory", {innerHTML: "Memory"}, {type: "number", value: config.data.memory, min: 16}); } function addFormLine (id, labelAttr, inputAttr) {