Skip to content

Commit

Permalink
Fixed issue with multiple periods within repo not working. Increased …
Browse files Browse the repository at this point in the history
…width of repo dropdown
  • Loading branch information
johnmurphy01 committed Nov 28, 2017
1 parent 28f8536 commit cdf8a0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,10 @@ function ajaxRequest(type, data, url) {

function addRepoToList(repoFullName, repo) {
// add the repo to the list
$('.repoDropdown').append('<li data-toggle="modal" id="' + repo.replace('.', '_') + '" data-target="#kaminoModal"><a class="repoItem" href="#">' + repoFullName + '</a></li>')
$('#' + repo.replace('.', '_')).bind('click', () => { itemClick(repoFullName) })
const periodReplace = repo.replace(/\./g, '_')

$('.repoDropdown').append('<li data-toggle="modal" id="' + periodReplace + '" data-target="#kaminoModal"><a class="repoItem" href="#">' + repoFullName + '</a></li>')
$('#' + periodReplace).bind('click', () => { itemClick(repoFullName) })
}

function populateUrlMetadata() {
Expand Down Expand Up @@ -388,6 +390,7 @@ function openDropdown() {
}

function itemClick(repo) {
console.log('item clicked: ' + repo)
// add the item to the most used list
addToMostUsed(repo)

Expand Down
2 changes: 1 addition & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cdf8a0c

Please sign in to comment.