summaryrefslogtreecommitdiff
path: root/kvmd/web/js/msd.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/msd.js
parent3a68c2ae1001f1207e639925d10d5f88f62d4430 (diff)
touch improvements
Diffstat (limited to 'kvmd/web/js/msd.js')
-rw-r--r--kvmd/web/js/msd.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/kvmd/web/js/msd.js b/kvmd/web/js/msd.js
index f8225406..f90e4b05 100644
--- a/kvmd/web/js/msd.js
+++ b/kvmd/web/js/msd.js
@@ -11,13 +11,13 @@ function Msd() {
$("msd-led").title = "Unknown state";
$("msd-select-new-image-file").onchange = __selectNewImageFile;
- $("msd-select-new-image-button").onclick = () => $("msd-select-new-image-file").click();
+ tools.setOnClick($("msd-select-new-image-button"), () => $("msd-select-new-image-file").click());
- $("msd-upload-new-image-button").onclick = __clickUploadNewImageButton;
- $("msd-abort-uploading-button").onclick = __clickAbortUploadingButton;
+ tools.setOnClick($("msd-upload-new-image-button"), __clickUploadNewImageButton);
+ tools.setOnClick($("msd-abort-uploading-button"), __clickAbortUploadingButton);
- $("msd-switch-to-kvm-button").onclick = () => __clickSwitchButton("kvm");
- $("msd-switch-to-server-button").onclick = () => __clickSwitchButton("server");
+ tools.setOnClick($("msd-switch-to-kvm-button"), () => __clickSwitchButton("kvm"));
+ tools.setOnClick($("msd-switch-to-server-button"), () => __clickSwitchButton("server"));
};
/********************************************************************************/