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/msd.js | |
parent | 3a68c2ae1001f1207e639925d10d5f88f62d4430 (diff) |
touch improvements
Diffstat (limited to 'kvmd/web/js/msd.js')
-rw-r--r-- | kvmd/web/js/msd.js | 10 |
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")); }; /********************************************************************************/ |