Skip to content

Commit

Permalink
Merge pull request #119 from github/mouse-click-search-results
Browse files Browse the repository at this point in the history
fixed non-working clicks on search results, fixes #116
  • Loading branch information
schacon committed May 30, 2012
2 parents efafc98 + 9886ab0 commit 7380469
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/assets/javascripts/site.js
Expand Up @@ -83,6 +83,7 @@ var Search = {
init: function() {
Search.observeFocus();
Search.observeTextEntry();
Search.observeResultsClicks();
},

observeFocus: function() {
Expand Down Expand Up @@ -124,6 +125,12 @@ var Search = {
});
},

observeResultsClicks: function() {
$('#search-results').mousedown(function(e) {
e.preventDefault();
});
},

runSearch: function(lastLetter) {
Search.searching = true;
var term = $('#search-text').val();
Expand Down

0 comments on commit 7380469

Please sign in to comment.