diff options
Diffstat (limited to 'public/javascripts/application.js')
-rw-r--r-- | public/javascripts/application.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 592a4f873..3284c6a86 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -456,12 +456,12 @@ function updateBulkEditFrom(url) { }); } -function observeAutocompleteField(fieldId, url) { +function observeAutocompleteField(fieldId, url, options) { $(document).ready(function() { - $('#'+fieldId).autocomplete({ + $('#'+fieldId).autocomplete($.extend({ source: url, minLength: 2 - }); + }, options)); }); } |