summaryrefslogtreecommitdiff
path: root/kvmd/web/js/atx.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-09-08 01:16:37 +0300
committerDevaev Maxim <[email protected]>2018-09-09 01:30:41 +0300
commit15981e62b52eefbf7ca8c7f24d20554ea7c9b4bf (patch)
tree17301fb258416956b80da735fe72c6ff041582cc /kvmd/web/js/atx.js
parent3a68c2ae1001f1207e639925d10d5f88f62d4430 (diff)
touch improvements
Diffstat (limited to 'kvmd/web/js/atx.js')
-rw-r--r--kvmd/web/js/atx.js6
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?"));
};
/********************************************************************************/