diff options
| author | stilbruch <stilbruch@protonmail.com> | 2022-04-23 19:21:36 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonmail.com> | 2022-04-23 19:21:36 -0500 |
| commit | 87d241a10f55793e1add6b16933748cc64932173 (patch) | |
| tree | fe9463a5c3ba6b55288c699093228d97c113758d /app/static/js | |
| parent | eff104b1e2840ad40131e7ab811448a34a896f9f (diff) | |
| download | Strengthy-87d241a10f55793e1add6b16933748cc64932173.tar.xz Strengthy-87d241a10f55793e1add6b16933748cc64932173.zip | |
More progress on forms
Diffstat (limited to 'app/static/js')
| -rw-r--r-- | app/static/js/record.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/static/js/record.js b/app/static/js/record.js index 67ad2a6..aa5a3b3 100644 --- a/app/static/js/record.js +++ b/app/static/js/record.js @@ -4,10 +4,7 @@ allInputs = Array.from(document.getElementsByClassName('input')) allInputs.forEach(e => e.addEventListener('keypress', handleEnterKey)); function handleEnterKey(event) { - - // add ids to each input programatically - - if (event.key = 'Enter') { + if (event.key === "Enter") { event.preventDefault(); //Isolate the node that we're after |
