summaryrefslogtreecommitdiff
path: root/app/static
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonmail.com>2022-04-23 17:08:53 -0500
committerstilbruch <stilbruch@protonmail.com>2022-04-23 17:08:53 -0500
commitceb76e7b1d75623b09a9c85a3e48752404a9077d (patch)
treeab2d93e62daad8d2b5a411e2cecc7fe3b73af448 /app/static
parenta4ca3d81f5bf0d00f1326ee80878da4169f54ea6 (diff)
downloadStrengthy-ceb76e7b1d75623b09a9c85a3e48752404a9077d.tar.xz
Strengthy-ceb76e7b1d75623b09a9c85a3e48752404a9077d.zip
Work on exercise type support for create workout
Diffstat (limited to 'app/static')
-rw-r--r--app/static/js/create.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/static/js/create.js b/app/static/js/create.js
index 7cdf328..832bbe2 100644
--- a/app/static/js/create.js
+++ b/app/static/js/create.js
@@ -18,7 +18,9 @@ function handleAdd() {
exerciseUnitInput.placeholder = 'Reps';
exerciseUnitInput.name = 'exercises-' + rowId + '-units';
- exerciseUnitInput.parentNode.children[0].children[0].children[0].addEventListener("input", handleChange);
+ exerciseUnitSelect = exerciseUnitInput.parentNode.children[0].children[0].children[0];
+ exerciseUnitSelect.addEventListener("input", handleChange);
+ exerciseUnitSelect.name = 'exercises-' + rowId + '-type';
rowId++;
rowsDiv.append(newRow);