fixed non-working clicks on search results, fixes #116 #119

Merged
merged 1 commit into from May 30, 2012
@@ -83,6 +83,7 @@ var Search = {
init: function() {
Search.observeFocus();
Search.observeTextEntry();
+ Search.observeResultsClicks();
},
observeFocus: function() {
@@ -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();