From 996e18ca6b2231fadc9378f7001bac4a58de5e63 Mon Sep 17 00:00:00 2001 From: sghsri Date: Fri, 31 Aug 2018 17:56:16 -0500 Subject: [PATCH] bugfixes --- js/calendar.js | 8 ++++++-- js/content.js | 6 ------ js/popup.js | 25 ++++++++++++++++--------- 3 files changed, 22 insertions(+), 17 deletions(-) diff --git a/js/calendar.js b/js/calendar.js index b2df9161..fdfbabfa 100644 --- a/js/calendar.js +++ b/js/calendar.js @@ -67,8 +67,12 @@ $(function () { let status = savedCourses[currindex].status; if (status.includes("closed") || status.includes("cancelled")) { $("#register").text("Class Closed").css("background-color", "#FF5722"); - } else { - $("#register").text("Register").css("background-color", "#4CAF50"); + } + else if(status.includes("waitlisted")){ + $("#register").text("Join Waitlist").css("background-color", "#FF9800"); + } + else { + $("#register").text("register").css("background-color", "#4CAF50"); } } }); diff --git a/js/content.js b/js/content.js index e3d437c3..4118445b 100644 --- a/js/content.js +++ b/js/content.js @@ -30,12 +30,6 @@ const butdelay = 75; //Matthew Tran's twitter and insta: @MATTHEWTRANN and @matthew.trann $(function () { loadDataBase(); - - chrome.runtime.sendMessage({ - command: "updateStatus", - }, function (response) { - console.log(response); - }); //make heading and modal $("table thead th:last-child").after('Plus'); var modhtml = '