summaryrefslogtreecommitdiff
path: root/web/js/kvm/hid.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-11-22 06:22:48 +0300
committerDevaev Maxim <[email protected]>2018-11-22 06:26:58 +0300
commitd3073b9d7e479b979e98043b4f878da306adae6a (patch)
tree9115c037b1dd7b6e3bed4f4ea7ec4a1aa6157fbb /web/js/kvm/hid.js
parenta4357162f452e89121e56500b7b6cba314eb46dd (diff)
design fix, refactoring
Diffstat (limited to 'web/js/kvm/hid.js')
-rw-r--r--web/js/kvm/hid.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/web/js/kvm/hid.js b/web/js/kvm/hid.js
index 5b13480f..69b34144 100644
--- a/web/js/kvm/hid.js
+++ b/web/js/kvm/hid.js
@@ -141,13 +141,14 @@ function Hid() {
clipboard_codes.push(codes);
}
});
-
- var confirm_msg = (
- "You are going to automatically type " + codes_count
- + " characters from the system clipboard."
- + " It will take " + (__codes_delay * codes_count * 2 / 1000) + " seconds.<br>"
- + "<br>Are you sure you want to continue?<br>"
- );
+ var time = __codes_delay * codes_count * 2 / 1000;
+
+ var confirm_msg = `
+ You are going to automatically type ${codes_count} characters from the system clipboard.
+ It will take ${time} seconds.<br>
+ <br>
+ Are you sure you want to continue?
+ `;
ui.confirm(confirm_msg).then(function(ok) {
if (ok) {