summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/hid.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/share/js/kvm/hid.js')
-rw-r--r--web/share/js/kvm/hid.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/share/js/kvm/hid.js b/web/share/js/kvm/hid.js
index dac36341..f5d02dec 100644
--- a/web/share/js/kvm/hid.js
+++ b/web/share/js/kvm/hid.js
@@ -118,9 +118,9 @@ export function Hid(__getResolution) {
for (let args of [
["USB", "usb"],
["PS/2", "ps2"],
- ["Off", ""],
+ ["Off", "disabled"],
]) {
- if (keyboard_outputs.includes(args[1]) || !args[1]) {
+ if (keyboard_outputs.includes(args[1])) {
html += tools.radioMakeItem("hid-outputs-keyboard-radio", args[0], args[1]);
}
}
@@ -138,9 +138,9 @@ export function Hid(__getResolution) {
["USB", "usb", false],
["USB Relative", "usb_rel", true],
["PS/2", "ps2", true],
- ["Off", ""],
+ ["Off", "disabled"],
]) {
- if (mouse_outputs.includes(args[1]) || !args[1]) {
+ if (mouse_outputs.includes(args[1])) {
html += tools.radioMakeItem("hid-outputs-mouse-radio", args[0], args[1]);
has_relative = (has_relative || args[2]);
}