diff --git a/background.js b/background.js index 2ef55255..b9207f85 100644 --- a/background.js +++ b/background.js @@ -87,12 +87,13 @@ function add(request, sender, sendResponse) { function remove(request, sender, sendResponse) { chrome.storage.sync.get('savedCourses', function(data) { var courses = data.savedCourses; + console.log(courses); var index = 0; + console.log(courses.length); while(index'); - chrome.runtime.sendMessage({command: "alreadyContains",unique: $(this).find('td[data-th="Unique"]').text()}, function(response) { - if(response.alreadyContains){ - //DO SOMETHING IF ALREADY CONTAINS - console.log("ALREADY CONTAINS IN THIS ROW"); - } - }); + // chrome.runtime.sendMessage({command: "alreadyContains",unique: $(this).find('td[data-th="Unique"]').text()}, function(response) { + // if(response.alreadyContains){ + // //DO SOMETHING IF ALREADY CONTAINS + // $(thisForm).find('td').each(function(){ + // // $(this).css('font-weight','bold'); + // $(this).css('color','#4CAF50'); + // }); + // } + // }); } }); diff --git a/popup.css b/popup.css index 94f4e662..18d7ee17 100644 --- a/popup.css +++ b/popup.css @@ -42,6 +42,12 @@ overflow: hidden; } +.truncate { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + .matbut:after { content: ''; position: absolute; diff --git a/popup.html b/popup.html index d6e17e08..f3c9734c 100644 --- a/popup.html +++ b/popup.html @@ -6,15 +6,15 @@