diff --git a/integration/public/javascripts/autocomplete-rails.js b/integration/public/javascripts/autocomplete-rails.js index 5b23fbf..670982b 100644 --- a/integration/public/javascripts/autocomplete-rails.js +++ b/integration/public/javascripts/autocomplete-rails.js @@ -61,7 +61,7 @@ search: function() { // custom minLength var term = extractLast( this.value ); - if ( term.length < 2 ) { + if ( term.length < 1 ) { return false; } }, diff --git a/lib/assets/javascripts/autocomplete-rails-uncompressed.js b/lib/assets/javascripts/autocomplete-rails-uncompressed.js index 12addcc..39e8684 100644 --- a/lib/assets/javascripts/autocomplete-rails-uncompressed.js +++ b/lib/assets/javascripts/autocomplete-rails-uncompressed.js @@ -123,7 +123,7 @@ search: function() { // custom minLength var term = extractLast( this.value ); - if ( term.length < e.min_length ) { + if ( term.length < 1 ) { return false; } },