fixed some bugs

This commit is contained in:
sghsri
2018-09-06 14:46:25 -05:00
parent 9590a2037e
commit 2869d12e9b
3 changed files with 14 additions and 10 deletions

View File

@@ -65,8 +65,8 @@ $(function () {
$("#prof").html(`with <span style='font-weight:bold;'>${uncapProf}</span>`);
let status = savedCourses[currindex].status;
if (status.includes("closed") || status.includes("cancelled")) {
$("#register").text("Class Closed").css("background-color", "#FF5722");
if (status.includes("closed") || status.includes("cancelled") || !status) {
$("#register").text("Cannot Register").css("background-color", "#FF5722");
} else if (status.includes("waitlisted")) {
$("#register").text("Join Waitlist").css("background-color", "#FF9800");
} else {