diff --git a/plugins/dynamix.vm.manager/templates/Custom.form.php b/plugins/dynamix.vm.manager/templates/Custom.form.php
index fa374e2cd..c5f833067 100644
--- a/plugins/dynamix.vm.manager/templates/Custom.form.php
+++ b/plugins/dynamix.vm.manager/templates/Custom.form.php
@@ -452,7 +452,7 @@
?>
>_(Enable USB boot)_:
-
_(Boot Order)_:
-
+
@@ -819,7 +819,7 @@
_(Boot Order)_:
-
+
@@ -1247,7 +1247,7 @@
?>
}
@@ -1290,7 +1290,7 @@
$intAvailableOtherPCIDevices++;
?>
}
@@ -1403,6 +1403,18 @@ function BIOSChange(bios) {
}
}
+function USBBootChange(usbboot) {
+ // Remove all boot orders if changed to Yes
+ var value = usbboot.value ;
+ var elements = document.getElementsByClassName("bootorder");
+ for(var i = 0; i < elements.length; i++) {
+ if (value == "Yes") {
+ elements[i].value = "";
+ elements[i].setAttribute("disabled","disabled");
+ } else elements[i].removeAttribute("disabled");
+ }
+}
+
function AutoportChange(autoport) {
if (autoport.value == "yes") {
document.getElementById("port").style.visibility="hidden";
diff --git a/plugins/dynamix.vm.manager/templates/LibreELEC.form.php b/plugins/dynamix.vm.manager/templates/LibreELEC.form.php
index 2c9e0e25c..0735abf20 100644
--- a/plugins/dynamix.vm.manager/templates/LibreELEC.form.php
+++ b/plugins/dynamix.vm.manager/templates/LibreELEC.form.php
@@ -672,7 +672,7 @@ $hdrXML = "\n"; // XML encoding declaratio
?>
>_(Enable USB boot)_:
- >
+ onchange="USBBootChange(this)">
echo mk_option($arrConfig['domain']['usbboot'], 'No', 'No');
echo mk_option($arrConfig['domain']['usbboot'], 'Yes', 'Yes');
@@ -1014,7 +1014,7 @@ $hdrXML = "\n"; // XML encoding declaratio
?>
}
@@ -1057,7 +1057,7 @@ $hdrXML = "\n"; // XML encoding declaratio
$intAvailableOtherPCIDevices++;
?>
}
@@ -1136,7 +1136,7 @@ $hdrXML = "\n"; // XML encoding declaratio