summaryrefslogtreecommitdiff
path: root/app/static/js/create.js
diff options
context:
space:
mode:
authorFivePixels <o5pxels@gmail.com>2022-04-25 20:43:42 -0500
committerFivePixels <o5pxels@gmail.com>2022-04-25 20:43:42 -0500
commit509a7bd8955138b2ff864dd75059d397b3fbb31e (patch)
tree767cafb6f5ea555345f458c64651416ffb743c7f /app/static/js/create.js
parent7f51b6011e443dbcfb4cad6644f482f725ce054b (diff)
downloadStrengthy-509a7bd8955138b2ff864dd75059d397b3fbb31e.tar.xz
Strengthy-509a7bd8955138b2ff864dd75059d397b3fbb31e.zip
Fix bug in create add row, add logic to 'done' a row when both inputs
are filled
Diffstat (limited to 'app/static/js/create.js')
-rw-r--r--app/static/js/create.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/static/js/create.js b/app/static/js/create.js
index cb22ad8..b65bc5a 100644
--- a/app/static/js/create.js
+++ b/app/static/js/create.js
@@ -2,7 +2,7 @@ var rowsDiv = document.getElementById("rows");
var rowId = rowsDiv.children.length;
function handleAdd() {
- newRow = rowsDiv.children[1].cloneNode(true);
+ newRow = rowsDiv.children[0].cloneNode(true);
exerciseNameInput = newRow.children[0].children[0].children[0].children[0];
exerciseNameInput.value = '';