diff options
author | Maxim Devaev <[email protected]> | 2021-07-24 02:09:18 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-07-24 02:09:18 +0300 |
commit | a33efcaef3e69fb097a71198d6b8cecb02491800 (patch) | |
tree | d7cd7b79d2848133d2e988515e7e7343b63120ac /web/share | |
parent | 96481aa745026b614f442e92f421fe32f83c1d90 (diff) |
disabled instead of empty string
Diffstat (limited to 'web/share')
-rw-r--r-- | web/share/js/kvm/hid.js | 8 |
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]); } |