From 87d241a10f55793e1add6b16933748cc64932173 Mon Sep 17 00:00:00 2001 From: stilbruch Date: Sat, 23 Apr 2022 19:21:36 -0500 Subject: More progress on forms --- app/static/js/record.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/static/js') 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 -- cgit v1.2.3