diff options
author | Devaev Maxim <[email protected]> | 2018-11-24 06:30:08 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-11-24 06:30:08 +0300 |
commit | c168e738057cae115be552e8cf22f500fb5ed0f8 (patch) | |
tree | f4fbb3180d77069d5ff688bf6403ea5535e007b9 /web/js/kvm/atx.js | |
parent | d060125cd3a146b9817aec4cbc8705da91cf5139 (diff) |
removed loadInitialState()
Diffstat (limited to 'web/js/kvm/atx.js')
-rw-r--r-- | web/js/kvm/atx.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/web/js/kvm/atx.js b/web/js/kvm/atx.js index b75b901b..e4f591d5 100644 --- a/web/js/kvm/atx.js +++ b/web/js/kvm/atx.js @@ -14,18 +14,6 @@ function Atx() { /********************************************************************************/ - self.loadInitialState = function() { - var http = tools.makeRequest("GET", "/kvmd/atx", function() { - if (http.readyState === 4) { - if (http.status === 200) { - __setButtonsBusy(JSON.parse(http.responseText).result.busy); - } else { - setTimeout(self.loadInitialState, 1000); - } - } - }); - }; - self.setState = function(state) { __setButtonsBusy(state.busy); $("atx-power-led").className = (state.leds.power ? "led-green" : "led-gray"); |