diff --git a/frontend/www/myathletes.html b/frontend/www/myathletes.html index 4d9f984ad6a17a41432f4253b660dce4c97fe878..4cf98ff3e85993e35af0f746f52b60078227c800 100644 --- a/frontend/www/myathletes.html +++ b/frontend/www/myathletes.html @@ -52,7 +52,7 @@ </div> <div class="row"> <div id="list-diets-div" class="col"> - <i class="fas fa-utensils"></i> + <i class="fas fa-utensils" aria-hidden="true"></i> <label for="list-diet-tab" class="form-label">Diets</label> </div> </div> @@ -71,7 +71,7 @@ <div class="entry input-group"> <input class="form-control" name="athlete" type="text" /> <button class="btn btn-danger btn-remove" type="button"> - <i class="fas fa-minus"></i> + <i class="fas fa-minus" aria-hidden="true"></i> </button> </span> </div> @@ -81,7 +81,7 @@ <div class="entry input-group"> <input class="form-control" name="athlete" type="text" /> <button class="btn btn-success btn-add" type="button"> - <i class="fas fa-plus"></i> + <i class="fas fa-plus" aria-hidden="true"></i> </button> </span> </div> @@ -139,7 +139,7 @@ <div class="entry input-group"> <input class="form-control" name="athlete-no-diet" type="text" /> <button class="btn btn-success btn-add-diet" type="button"> - <i class="fas fa-utensils"></i> + <i class="fas fa-utensils" aria-hidden="true"></i> </button> <div class="tab-pane fade" role="tabpanel"> diff --git a/frontend/www/scripts/mealtype.js b/frontend/www/scripts/mealtype.js index 1b6d5ce59514ccb34dba8d287f1a94f2149d236a..bc545f8d43264d24c2b3a8acaaca0ac547fa27ee 100644 --- a/frontend/www/scripts/mealtype.js +++ b/frontend/www/scripts/mealtype.js @@ -132,8 +132,8 @@ window.addEventListener("DOMContentLoaded", async () => { await retrieveMealtype(mealtypeId); editButton.addEventListener("click", handleEditMealtypeButtonClick); - deleteButton.addEventListener("click", (async (id) => await deleteMealtype(id)).bind(undefined, mealtypeId)); - okButton.addEventListener("click", (async (id) => await updateMealtype(id)).bind(undefined, mealtypeId)); + deleteButton.addEventListener("click", (async (id) => deleteMealtype(id)).bind(undefined, mealtypeId)); + okButton.addEventListener("click", (async (id) => updateMealtype(id)).bind(undefined, mealtypeId)); } //create else { @@ -143,7 +143,7 @@ window.addEventListener("DOMContentLoaded", async () => { okButton.className = okButton.className.replace(" hide", ""); cancelButton.className = cancelButton.className.replace(" hide", ""); - okButton.addEventListener("click", async () => await createMealtype()); + okButton.addEventListener("click", async () => createMealtype()); cancelButton.addEventListener("click", handleCancelButtonDuringCreate); } }); \ No newline at end of file