summaryrefslogtreecommitdiff
path: root/app/static/js
diff options
context:
space:
mode:
Diffstat (limited to 'app/static/js')
-rw-r--r--app/static/js/record.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/app/static/js/record.js b/app/static/js/record.js
index a3ea516..2654a47 100644
--- a/app/static/js/record.js
+++ b/app/static/js/record.js
@@ -6,11 +6,10 @@ class Timer {
finish;
}
-// Register 'Enter' listeners on all inputs
-allInputs = Array.from(document.getElementsByClassName('input'))
- .filter(e => e.type == 'number');
-allInputs.forEach(e => e.addEventListener('keydown', handleEnterKey));
-// Register onsubmit handler for form
+// Get an arrayt of all inputs
+allInputs = Array.from(document.getElementsByClassName('input')).filter(e => e.type == 'number');
+
+// Register onsubmit handler for form (NOTE: unfortunatly not a better way to do this)
document.getElementById("form").addEventListener('submit', (el) => {
Array.from(event.target.getElementsByTagName('input')).forEach(i => i.disabled = false);
});
@@ -83,9 +82,9 @@ function setReset(row, index, values=true) {
function setSetid(row, id) {
let setNumber = row.children[0];
- let lbsInput = row.children[1].children[0];
- let repsInput = row.children[2].children[0];
- let doneButton = row.children[3].children[0];
+ //let lbsInput = row.children[1].children[0];
+ //let repsInput = row.children[2].children[0];
+ //let doneButton = row.children[3].children[0];
setNumber.textContent = id + 1;
}