use innerHTML
This commit is contained in:
parent
06aa9ac47e
commit
54e09d8b31
@ -14,8 +14,8 @@ async function populateForm (node, type, vmid) {
|
|||||||
let config = await request(`/nodes/${node}/${type}/${vmid}/config`);
|
let config = await request(`/nodes/${node}/${type}/${vmid}/config`);
|
||||||
console.log(config);
|
console.log(config);
|
||||||
|
|
||||||
addFormLine("cores", {innerText: "Cores:"}, {type: "number", value: config.data.cores, min: 1, max: 8192});
|
addFormLine("cores", {innerHTML: "Cores:"}, {type: "number", value: config.data.cores, min: 1, max: 8192});
|
||||||
addFormLine("memory", {innerText: "Memory"}, {type: "number", value: config.data.memory, min: 16});
|
addFormLine("memory", {innerHTML: "Memory"}, {type: "number", value: config.data.memory, min: 16});
|
||||||
}
|
}
|
||||||
|
|
||||||
function addFormLine (id, labelAttr, inputAttr) {
|
function addFormLine (id, labelAttr, inputAttr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user