diff options
Diffstat (limited to 'web/share/js/kvm/atx.js')
-rw-r--r-- | web/share/js/kvm/atx.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/web/share/js/kvm/atx.js b/web/share/js/kvm/atx.js index d65d1ded..a7c6bbed 100644 --- a/web/share/js/kvm/atx.js +++ b/web/share/js/kvm/atx.js @@ -45,11 +45,7 @@ export function Atx() { self.setState = function(state) { if (state) { - if (state.enabled) { - $("atx-dropdown").classList.remove("feature-disabled"); - } else { - $("atx-dropdown").classList.add("feature-disabled"); - } + $("atx-dropdown").classList.toggle("feature-disabled", !state.enabled); } $("atx-power-led").className = ((state && state.leds.power) ? "led-green" : "led-gray"); |