refactoring

This commit is contained in:
Devaev Maxim
2019-11-08 02:08:56 +03:00
parent 3c1681fd2b
commit 7f1461371d
6 changed files with 43 additions and 43 deletions

View File

@@ -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) {