diff options
author | Devaev Maxim <[email protected]> | 2018-09-08 01:16:37 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-09-09 01:30:41 +0300 |
commit | 15981e62b52eefbf7ca8c7f24d20554ea7c9b4bf (patch) | |
tree | 17301fb258416956b80da735fe72c6ff041582cc /kvmd/web/js/atx.js | |
parent | 3a68c2ae1001f1207e639925d10d5f88f62d4430 (diff) |
touch improvements
Diffstat (limited to 'kvmd/web/js/atx.js')
-rw-r--r-- | kvmd/web/js/atx.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/web/js/atx.js b/kvmd/web/js/atx.js index 6f1d2b19..f4b4811a 100644 --- a/kvmd/web/js/atx.js +++ b/kvmd/web/js/atx.js @@ -7,9 +7,9 @@ function Atx() { $("atx-power-led").title = "Power Led"; $("atx-hdd-led").title = "Disk Activity Led"; - $("atx-power-button").onclick = () => __clickButton("power", null, "Are you sure to click the power button?"); - $("atx-power-button-long").onclick = () => __clickButton("power_long", 15000, "Are you sure to perform the long press of the power button?"); - $("atx-reset-button").onclick = () => __clickButton("reset", null, "Are you sure to reboot the server?"); + tools.setOnClick($("atx-power-button"), () => __clickButton("power", null, "Are you sure to click the power button?")); + tools.setOnClick($("atx-power-button-long"), () => __clickButton("power_long", 15000, "Are you sure to perform the long press of the power button?")); + tools.setOnClick($("atx-reset-button"), () => __clickButton("reset", null, "Are you sure to reboot the server?")); }; /********************************************************************************/ |