updated register button text
This commit is contained in:
@@ -66,7 +66,7 @@ $(function () {
|
||||
|
||||
let status = savedCourses[currindex].status;
|
||||
if (status.includes("closed") || status.includes("cancelled") || !status) {
|
||||
$("#register").text("Cannot Register").css("background-color", "#FF5722");
|
||||
$("#register").text("Can't Register").css("background-color", "#FF5722");
|
||||
} else if (status.includes("waitlisted")) {
|
||||
$("#register").text("Join Waitlist").css("background-color", "#FF9800");
|
||||
} else {
|
||||
|
||||
@@ -91,7 +91,7 @@ $(document).ready(function () {
|
||||
let status = courses[$(this).closest("li").attr("id")].status;
|
||||
|
||||
if (status.includes("closed") || status.includes("cancelled")|| !status) {
|
||||
$(this).find("#register").text("Cannot Register").css("background-color","#FF5722");
|
||||
$(this).find("#register").text("Can't Register").css("background-color","#FF5722");
|
||||
}
|
||||
else {
|
||||
if(status.includes("waitlisted")){
|
||||
|
||||
Reference in New Issue
Block a user