Updated to match upstream branch

This commit is contained in:
Kevin Dao
2018-08-29 11:36:46 -05:00
parent 9a02248a81
commit fd9a41b352

View File

@@ -217,7 +217,12 @@ function getCourseInfo(row) {
/*Handle if on the individual course page, ie if the textbook button exists*/
if ($("#textbook_button").length) {
coursename = $("#details h2").text();
profinit = $("table").find("td[data-th='Instructor']").text().split(", ")[1].substring(0, 1);
var gotname = $("table").find("td[data-th='Instructor']").text();
if (gotname != "") {
profinit = $("table").find("td[data-th='Instructor']").text().split(", ")[1].substring(0, 1);
} else {
profinit = "";
}
profurl = document.URL;
console.log(profurl);
}