summaryrefslogtreecommitdiff
path: root/web/share/js/keypad.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-21 15:02:57 +0300
committerDevaev Maxim <[email protected]>2020-07-21 15:27:14 +0300
commit360ff0090346fe2ead3e42d7bc39391325f8a2d3 (patch)
tree27de4c274acfe1abcc3df6b94d123a2cbb0fd03f /web/share/js/keypad.js
parentb5ba546481dffa687395df725fb4dd57c7dc8338 (diff)
refactoring
Diffstat (limited to 'web/share/js/keypad.js')
-rw-r--r--web/share/js/keypad.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/keypad.js b/web/share/js/keypad.js
index 7e4cf366..a3e96813 100644
--- a/web/share/js/keypad.js
+++ b/web/share/js/keypad.js
@@ -36,7 +36,7 @@ export function Keypad(keys_parent, key_callback) {
var __modifiers = {};
var __init__ = function() {
- for (let el_key of $$$(keys_parent + " div.key")) {
+ for (let el_key of $$$(`${keys_parent} div.key`)) {
let code = el_key.getAttribute("data-code");
tools.setDefault(__keys, code, []);
@@ -54,7 +54,7 @@ export function Keypad(keys_parent, key_callback) {
};
}
- for (let el_key of $$$(keys_parent + " div.modifier")) {
+ for (let el_key of $$$(`${keys_parent} div.modifier`)) {
let code = el_key.getAttribute("data-code");
tools.setDefault(__modifiers, code, []);