This commit is contained in:
parent
b46ae02bdf
commit
118595a072
8
main.js
8
main.js
@ -15,10 +15,10 @@ function updateExercises() {
|
|||||||
exercises[t] = [];
|
exercises[t] = [];
|
||||||
for (const element of exerciseList) {
|
for (const element of exerciseList) {
|
||||||
exercises[t].push({
|
exercises[t].push({
|
||||||
exerciseType: element.childNodes[3].value,
|
exerciseType: element.childNodes[1].childNodes[1].value,
|
||||||
repetitionType: element.childNodes[4].value,
|
repetitionType: element.childNodes[1].childNodes[2].value,
|
||||||
reps: element.childNodes[6].value,
|
reps: element.childNodes[2].childNodes[1].value,
|
||||||
weight: element.childNodes[8].value
|
weight: element.childNodes[3].childNodes[1].value
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (exercisesEdited(exercises[t])) {
|
if (exercisesEdited(exercises[t])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user