styling settings

This commit is contained in:
sghsri
2018-12-13 02:00:00 -06:00
parent 77158f5907
commit f231a3d49e
2 changed files with 23 additions and 11 deletions

View File

@@ -183,6 +183,7 @@ $(document).ready(function () {
$("#class_id").show();
$("#semesters").show();
$("#semcon").show();
$('#class_id').focus();
}
});
$('#import').click(function () {
@@ -399,16 +400,20 @@ function getInfo(sem, unique) {
var object = $('<div/>').html(response).contents();
var c = getCourseObject(object, link);
console.log(c);
chrome.runtime.sendMessage({
command: "courseStorage",
course: c,
action: "add"
}, function () {
if(c.coursename){
chrome.runtime.sendMessage({
command: "updateCourseList"
command: "courseStorage",
course: c,
action: "add"
}, function () {
chrome.runtime.sendMessage({
command: "updateCourseList"
});
setCourseList();
});
setCourseList();
});
} else {
alert("There Was An Error.")
}
}
}