diff options
author | Devaev Maxim <[email protected]> | 2018-10-09 16:20:41 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-10-09 16:20:41 +0300 |
commit | a449b39c52392d0d8b043934a15792f21d54e06d (patch) | |
tree | c8ff6a67baea441b61ea14f0363ba4b22c0cd116 /web/js/atx.js | |
parent | 2c241fab4409eac3b40762d2c23d42ac6e3f8df1 (diff) |
refactoring
Diffstat (limited to 'web/js/atx.js')
-rw-r--r-- | web/js/atx.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/js/atx.js b/web/js/atx.js index f4b4811a..b75b901b 100644 --- a/web/js/atx.js +++ b/web/js/atx.js @@ -28,13 +28,13 @@ function Atx() { self.setState = function(state) { __setButtonsBusy(state.busy); - $("atx-power-led").className = (state.leds.power ? "led-on" : "led-off"); - $("atx-hdd-led").className = (state.leds.hdd ? "led-hdd-busy" : "led-off"); + $("atx-power-led").className = (state.leds.power ? "led-green" : "led-gray"); + $("atx-hdd-led").className = (state.leds.hdd ? "led-red" : "led-gray"); }; self.clearState = function() { - $("atx-power-led").className = "led-off"; - $("atx-hdd-led").className = "led-off"; + $("atx-power-led").className = "led-gray"; + $("atx-hdd-led").className = "led-gray"; }; var __clickButton = function(button, timeout, confirm_msg) { |