From aa28df5947fae88708d13bafabb0bc299d89c332 Mon Sep 17 00:00:00 2001 From: ajquick Date: Sat, 11 Oct 2014 16:49:11 -0600 Subject: [PATCH 1/2] Update jquery.select-to-autocomplete.js Allows jquery UI autocomplete settings to be set when setting up the plugin. --- jquery.select-to-autocomplete.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/jquery.select-to-autocomplete.js b/jquery.select-to-autocomplete.js index adeca38..83468c7 100755 --- a/jquery.select-to-autocomplete.js +++ b/jquery.select-to-autocomplete.js @@ -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'] ) { @@ -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'] ) { From c4a888d8360565b88ea7fd808b63c57c122d460d Mon Sep 17 00:00:00 2001 From: Jamie Appleseed Date: Mon, 13 Oct 2014 14:20:26 +0200 Subject: [PATCH 2/2] Bump version --- jquery.select-to-autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.select-to-autocomplete.js b/jquery.select-to-autocomplete.js index 83468c7..9791c6d 100755 --- a/jquery.select-to-autocomplete.js +++ b/jquery.select-to-autocomplete.js @@ -1,5 +1,5 @@ /* -Version: 1.0.8 +Version: 1.0.9 Documentation: http://baymard.com/labs/country-selector#documentation