diff options
author | Devaev Maxim <[email protected]> | 2019-11-08 02:08:56 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-11-08 02:08:56 +0300 |
commit | 7f1461371d561592a1445e6b0245d51ca2516761 (patch) | |
tree | 057ad775af452346068306f58258a9d2609e7b7b /web/share/js/kvm/atx.js | |
parent | 3c1681fd2bc43dffcc75b82760d3f068af97574c (diff) |
refactoring
Diffstat (limited to 'web/share/js/kvm/atx.js')
-rw-r--r-- | web/share/js/kvm/atx.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/share/js/kvm/atx.js b/web/share/js/kvm/atx.js index a7c6bbed..fae7fc9f 100644 --- a/web/share/js/kvm/atx.js +++ b/web/share/js/kvm/atx.js @@ -51,9 +51,9 @@ export function Atx() { $("atx-power-led").className = ((state && state.leds.power) ? "led-green" : "led-gray"); $("atx-hdd-led").className = ((state && state.leds.hdd) ? "led-red" : "led-gray"); - wm.switchDisabled($("atx-power-button"), (!state || state.busy)); - wm.switchDisabled($("atx-power-button-long"), (!state || state.busy)); - wm.switchDisabled($("atx-reset-button"), (!state || state.busy)); + wm.switchEnabled($("atx-power-button"), (state && !state.busy)); + wm.switchEnabled($("atx-power-button-long"), (state && !state.busy)); + wm.switchEnabled($("atx-reset-button"), (state && !state.busy)); }; var __clickButton = function(button, confirm_msg) { |