Skip to content

Commit

Permalink
Decrease search typeahead timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Apr 13, 2012
1 parent 33092db commit 0d3ba91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/www/js/chrome.js
Expand Up @@ -93,11 +93,11 @@ window.chrome = function() {
{ {
$("#searchParam").blur(); $("#searchParam").blur();
}else{ }else{
// Wait 750ms with no keypress before starting request // Wait 250ms with no keypress before starting request
window.clearTimeout(lastSearchTimeout); window.clearTimeout(lastSearchTimeout);
lastSearchTimeout = setTimeout(function() { lastSearchTimeout = setTimeout(function() {
window.search.performSearch($("#searchParam").val(), true); window.search.performSearch($("#searchParam").val(), true);
}, 750); }, 250);
} }
}); });
$("#clearSearch").bind('touchstart', function() { $("#clearSearch").bind('touchstart', function() {
Expand Down

0 comments on commit 0d3ba91

Please sign in to comment.