Skip to content

Commit

Permalink
Merge branch 'pr/70'
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieholst committed Oct 13, 2014
2 parents 54c7488 + c4a888d commit 5da5816
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions jquery.select-to-autocomplete.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Version: 1.0.8
Version: 1.0.9
Documentation: http://baymard.com/labs/country-selector#documentation
Expand Down Expand Up @@ -38,6 +38,9 @@ THE SOFTWARE.
'relevancy-sorting-partial-match-value': 1,
'relevancy-sorting-strict-match-value': 5,
'relevancy-sorting-booster-attr': 'data-relevancy-booster',
'minLength': 0,
'delay': 0,
'autoFocus': true,
handle_invalid_input: function( context ) {
var selected_finder = 'option:selected:first';
if ( context.settings['remove-valueless-options'] ) {
Expand Down Expand Up @@ -252,9 +255,9 @@ THE SOFTWARE.
}
// jQuery UI autocomplete settings & behavior
context.$text_field.autocomplete({
'minLength': 0,
'delay': 0,
'autoFocus': true,
'minLength': context.settings['minLength'],
'delay': context.settings['delay'],
'autoFocus': context.settings['autoFocus'],
source: function( request, response ) {
var filtered_options = filter_options( request.term );
if ( context.settings['relevancy-sorting'] ) {
Expand Down

0 comments on commit 5da5816

Please sign in to comment.