summaryrefslogtreecommitdiff
path: root/web/share
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-07-24 02:09:18 +0300
committerMaxim Devaev <[email protected]>2021-07-24 02:09:18 +0300
commita33efcaef3e69fb097a71198d6b8cecb02491800 (patch)
treed7cd7b79d2848133d2e988515e7e7343b63120ac /web/share
parent96481aa745026b614f442e92f421fe32f83c1d90 (diff)
disabled instead of empty string
Diffstat (limited to 'web/share')
-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]);
}