From 05c9aa90059d2a55cafbdb4d187b1e3e65cc813e Mon Sep 17 00:00:00 2001 From: Sriram Hariharan Date: Fri, 13 Jul 2018 16:35:52 -0500 Subject: [PATCH] removing from saved --- background.js | 3 ++- content.js | 16 ++++++++++------ popup.css | 6 ++++++ popup.html | 10 +++++----- popup.js | 50 ++++++++++++++++++++++++++++++++++++++++---------- todo | 17 +++++++++++------ 6 files changed, 74 insertions(+), 28 deletions(-) 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 @@