Minor bugfixes

This commit is contained in:
10001shh
2018-10-04 00:21:28 -05:00
parent 60f515ee67
commit dc19a92a45
3 changed files with 31 additions and 30 deletions

View File

@@ -89,7 +89,7 @@ $(function () {
chrome.runtime.onMessage.addListener(
function (request, sender, sendResponse) {
if (request.command == "updateCourseList") {
console.log("hello");
// console.log("hello");
update();
}
});
@@ -193,7 +193,7 @@ function getCourseInfo(row) {
if ($(this).is(row)) {
profurl = $(this).find('td[data-th="Unique"] a').prop('href');
registerlink = $(this).find('td[data-th="Add"] a').prop('href');
console.log(registerlink);
// console.log(registerlink);
uniquenum = $(this).find('td[data-th="Unique"]').text();
status = $(this).find('td[data-th="Status"]').text();
profname = $(this).find('td[data-th="Instructor"]').text().split(', ')[0];
@@ -222,7 +222,7 @@ function getCourseInfo(row) {
profinit = "";
}
profurl = document.URL;
console.log(profurl);
// console.log(profurl);
}
getDescription();
department = coursename.substring(0, coursename.search(/\d/) - 2);
@@ -491,8 +491,8 @@ function prettifyName() {
/*Get the course description from the profurl and highlight the important elements, as well as set the eCIS, and rmp links.*/
function getDescription() {
console.log(window.location.href);
console.log(profurl);
// console.log(window.location.href);
// console.log(profurl);
chrome.runtime.sendMessage({
method: "GET",
action: "xhttp",