summaryrefslogtreecommitdiff
path: root/app/static
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonail.com>2022-05-02 18:56:27 -0500
committerstilbruch <stilbruch@protonail.com>2022-05-02 18:56:27 -0500
commit22ec1a4502a105eaf575e3209b83af72be685929 (patch)
tree8b354e344b74e62a740fd3da33112947c5791ce1 /app/static
parent960f3fabf56d7d7f11ea6295fd76849d71724f27 (diff)
parent746d2c2d31f47e3e475c0bf5ffbf2492db78be41 (diff)
downloadStrengthy-22ec1a4502a105eaf575e3209b83af72be685929.tar.xz
Strengthy-22ec1a4502a105eaf575e3209b83af72be685929.zip
Merge branch 'master' of stilbruch.xyz:strengthy
Diffstat (limited to 'app/static')
-rw-r--r--app/static/js/record.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/static/js/record.js b/app/static/js/record.js
index 3037c2f..137786e 100644
--- a/app/static/js/record.js
+++ b/app/static/js/record.js
@@ -87,11 +87,12 @@ function onClickSetCheck(elem) {
function onClickAddSet(elem) {
// Create the new row
- let tableBody = elem.parentElement.parentElement.children[1].children[1];
+ let tableBody = elem.parentElement.parentElement.children[2].children[1];
let row = tableBody.children[0].cloneNode(true);
// Add new row to table
setReset(row);
setSetid(row, tableBody.children.length)
+ row.addEventListener('keydown', handleEnterKey)
tableBody.appendChild(row)
}