mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2025-09-09 08:07:22 +00:00
tempIfElseAlert
This commit is contained in:
@@ -31,6 +31,7 @@ function initFormHandler() {
|
|||||||
reviewObject[`${key}`] = `${value}`;
|
reviewObject[`${key}`] = `${value}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(reviewObject["rating"] != null){
|
||||||
reviewObject["tags"] = [];
|
reviewObject["tags"] = [];
|
||||||
|
|
||||||
let tags = document.querySelectorAll(".tag");
|
let tags = document.querySelectorAll(".tag");
|
||||||
@@ -43,6 +44,9 @@ function initFormHandler() {
|
|||||||
sessionStorage.setItem("currID", JSON.stringify(nextReviewId));
|
sessionStorage.setItem("currID", JSON.stringify(nextReviewId));
|
||||||
|
|
||||||
window.location.assign("./ReviewDetails.html");
|
window.location.assign("./ReviewDetails.html");
|
||||||
|
} else{
|
||||||
|
window.alert("NO");
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user