From cdf8a0c6e5d07fd27e168e5ba9e8a5a618394d12 Mon Sep 17 00:00:00 2001 From: John Murphy Date: Tue, 28 Nov 2017 10:24:13 -0600 Subject: [PATCH 1/3] Fixed issue with multiple periods within repo not working. Increased width of repo dropdown --- app.js | 7 +++++-- css/style.css | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index a4e576f..bb82a16 100644 --- a/app.js +++ b/app.js @@ -317,8 +317,10 @@ function ajaxRequest(type, data, url) { function addRepoToList(repoFullName, repo) { // add the repo to the list - $('.repoDropdown').append('
  • ' + repoFullName + '
  • ') - $('#' + repo.replace('.', '_')).bind('click', () => { itemClick(repoFullName) }) + const periodReplace = repo.replace(/\./g, '_') + + $('.repoDropdown').append('
  • ' + repoFullName + '
  • ') + $('#' + periodReplace).bind('click', () => { itemClick(repoFullName) }) } function populateUrlMetadata() { @@ -388,6 +390,7 @@ function openDropdown() { } function itemClick(repo) { + console.log('item clicked: ' + repo) // add the item to the most used list addToMostUsed(repo) diff --git a/css/style.css b/css/style.css index 836fd87..b85de8d 100644 --- a/css/style.css +++ b/css/style.css @@ -36,7 +36,7 @@ a { z-index: 1000; display: none; float: left; - min-width: 260px; + min-width: 280px; height: 300px; overflow-y: auto; overflow-x: hidden; From c5e54f393db0d483de0717af38aaa76da9194a93 Mon Sep 17 00:00:00 2001 From: John Murphy Date: Tue, 28 Nov 2017 10:25:14 -0600 Subject: [PATCH 2/3] removed unnecessary console log --- app.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app.js b/app.js index bb82a16..66abe5a 100644 --- a/app.js +++ b/app.js @@ -390,7 +390,6 @@ function openDropdown() { } function itemClick(repo) { - console.log('item clicked: ' + repo) // add the item to the most used list addToMostUsed(repo) From 5a9a27ed9e0ff72eb173b1d9c0ac1a5778540521 Mon Sep 17 00:00:00 2001 From: John Murphy Date: Tue, 28 Nov 2017 10:25:53 -0600 Subject: [PATCH 3/3] bump version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index b685766..810f768 100644 --- a/manifest.json +++ b/manifest.json @@ -35,7 +35,7 @@ "webNavigation", "*://github.com/*" ], - "version": "2.7", + "version": "2.8", "web_accessible_resources":[ "icons/*.png", "bootstrap/js/bootstrap.min.js",