add query select for addDiskDevice
This commit is contained in:
parent
79fd1f0625
commit
cdb06ce8cc
@ -124,6 +124,7 @@ function handleDiskDeviceChange () {
|
|||||||
let value = document.querySelector("#add-disk #device").value;
|
let value = document.querySelector("#add-disk #device").value;
|
||||||
let bus = document.querySelector("#add-disk #bus").value;
|
let bus = document.querySelector("#add-disk #bus").value;
|
||||||
let entry = diskConfig[type][bus];
|
let entry = diskConfig[type][bus];
|
||||||
|
let addDiskDevice = document.querySelector("#add-disk #device");
|
||||||
if(value in entry.used){
|
if(value in entry.used){
|
||||||
addDiskDevice.style.border = "solid red 1px";
|
addDiskDevice.style.border = "solid red 1px";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user