Skip to content

Commit

Permalink
fixed non-working clicks on search results, fixes #116
Browse files Browse the repository at this point in the history
tested on safari, chrome, firefox, ie10
  • Loading branch information
blackant committed May 18, 2012
1 parent 841d517 commit 9886ab0
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 9886ab0

Please sign in to comment.