diff options
author | Maxim Devaev <[email protected]> | 2021-07-29 02:11:44 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-07-29 02:11:44 +0300 |
commit | 02335734ceafa25c660110e1f8059ff60bcb6d84 (patch) | |
tree | 69e07e3031ae365fb2a509554f8a411a5d44d607 /web/share/js/kvm/atx.js | |
parent | 33c34bd4efbb675ec0c700454c655575cffe26e9 (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 3ec04351..b787eccf 100644 --- a/web/share/js/kvm/atx.js +++ b/web/share/js/kvm/atx.js @@ -47,7 +47,7 @@ export function Atx() { Warning! This could case data loss on the server. `], ]) { - tools.setOnClick($(args[0]), () => __clickButton(args[1], args[2])); + tools.el.setOnClick($(args[0]), () => __clickButton(args[1], args[2])); } }; @@ -56,7 +56,7 @@ export function Atx() { self.setState = function(state) { let buttons_enabled = false; if (state) { - tools.featureSetEnabled($("atx-dropdown"), state.enabled); + tools.feature.setEnabled($("atx-dropdown"), state.enabled); $("atx-power-led").className = (state.busy ? "led-yellow" : (state.leds.power ? "led-green" : "led-gray")); $("atx-hdd-led").className = (state.leds.hdd ? "led-red" : "led-gray"); buttons_enabled = !state.busy; @@ -65,7 +65,7 @@ export function Atx() { $("atx-hdd-led").className = "led-gray"; } for (let id of ["atx-power-button", "atx-power-button-long", "atx-reset-button"]) { - wm.setElementEnabled($(id), buttons_enabled); + tools.el.setEnabled($(id), buttons_enabled); } }; |