fixed cookie issue

This commit is contained in:
Sriram Hariharan
2019-01-12 11:53:15 -06:00
parent 916137f91b
commit 4590bfffa7

View File

@@ -248,7 +248,7 @@ function update(start) {
if (!($(this).find('td').hasClass("course_header")) && $(this).has('th').length == 0) { if (!($(this).find('td').hasClass("course_header")) && $(this).has('th').length == 0) {
var thisForm = this; var thisForm = this;
var uniquenum = $(this).find('td[data-th="Unique"]').text(); var uniquenum = $(this).find('td[data-th="Unique"]').text();
console.log(uniquenum); // console.log(uniquenum);
chrome.runtime.sendMessage({ chrome.runtime.sendMessage({
command: "isSingleConflict", command: "isSingleConflict",
dtarr: getDtarr(this), dtarr: getDtarr(this),
@@ -665,6 +665,7 @@ function getDescription() {
data: "" data: ""
}, function (response) { }, function (response) {
if (response) { if (response) {
console.log(response);
var output = ""; var output = "";
var object = $('<div/>').html(response).contents(); var object = $('<div/>').html(response).contents();
object.find('#details > p').each(function () { object.find('#details > p').each(function () {
@@ -681,6 +682,9 @@ function getDescription() {
output += sentence; output += sentence;
}); });
description = output; description = output;
if (!description) {
description = "<p style='color:red;font-style:bold'>You have been logged out. Please refresh the page and log back in using your UT EID and password.</p>"
}
$("#description").animate({ $("#description").animate({
'opacity': 0 'opacity': 0
}, 200, function () { }, 200, function () {