diff options
| author | stilbruch <stilbruch@protonmail.com> | 2022-04-23 17:08:53 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonmail.com> | 2022-04-23 17:08:53 -0500 |
| commit | ceb76e7b1d75623b09a9c85a3e48752404a9077d (patch) | |
| tree | ab2d93e62daad8d2b5a411e2cecc7fe3b73af448 /app/static | |
| parent | a4ca3d81f5bf0d00f1326ee80878da4169f54ea6 (diff) | |
| download | Strengthy-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.js | 4 |
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); |
