mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2024-12-27 09:29:10 +00:00
fix update form listener
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
123057f0f1
commit
dd56207892
@ -67,7 +67,7 @@ function setupUpdate(){
|
|||||||
let updateBtn = document.getElementById("update-btn");
|
let updateBtn = document.getElementById("update-btn");
|
||||||
let currID = JSON.parse(sessionStorage.getItem("currID"));
|
let currID = JSON.parse(sessionStorage.getItem("currID"));
|
||||||
let currReview = getReviewFromStorage(currID);
|
let currReview = getReviewFromStorage(currID);
|
||||||
let form = document.getElementById("update-food-entry");
|
let form = document.getElementById("update-form");
|
||||||
let updateDiv = document.getElementById("update-form");
|
let updateDiv = document.getElementById("update-form");
|
||||||
updateBtn.addEventListener("click", function(){
|
updateBtn.addEventListener("click", function(){
|
||||||
//update function
|
//update function
|
||||||
|
Loading…
Reference in New Issue
Block a user