Skip to content

Commit

Permalink
made search results clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
jflores1997 committed Jun 20, 2018
1 parent f1003a8 commit 3104bd4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions js/landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ function insertSearchResults(error, results) {

var filler = Mustache.render(template, results);
$("#result-wrapper").append(filler);

document.getElementById('link-' + results.proj_name).onclick = function() {
loadDetail(results.proj_name);
};
document.getElementById('btn-' + results.proj_name).onclick = function() {
loadDetail(results.proj_name);
};
document.getElementById('photo-' + results.proj_name).onclick = function() {
loadDetail(results.proj_name);
};
}

function clearSearchResults() {
Expand Down
2 changes: 1 addition & 1 deletion sections/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<br>

<div id="result-wrapper">
<div id="result-wrapper" class="row">
<!-- <div id="" role="tablist" aria-multiselectable="true">
<div class="panel panel-default data-panel">
<div id="display-fav{{id}}" class="panel-collapse accordian-body" role="tabpanel" aria-labelledby="trigger-fav{{id}}">
Expand Down

0 comments on commit 3104bd4

Please sign in to comment.