optimization and scrolling to load more courses
This commit is contained in:
@@ -261,6 +261,9 @@ $("#importOrig").change(function (e) {
|
||||
chrome.storage.sync.set({
|
||||
savedCourses: impCourses
|
||||
});
|
||||
chrome.browserAction.setBadgeBackgroundColor({
|
||||
color: '#bf5700'
|
||||
});
|
||||
chrome.browserAction.setBadgeText({ text: "" + impCourses.length });
|
||||
chrome.tabs.query({}, function (tabs) {
|
||||
for (var i = 0; i < tabs.length; i++) {
|
||||
@@ -370,6 +373,9 @@ function clear() {
|
||||
});
|
||||
}
|
||||
});
|
||||
chrome.browserAction.setBadgeBackgroundColor({
|
||||
color: '#bf5700'
|
||||
});
|
||||
chrome.browserAction.setBadgeText({ text: "" });
|
||||
$("#courseList").empty()
|
||||
console.log("cleared");
|
||||
|
||||
Reference in New Issue
Block a user