diff options
-rw-r--r-- | public/javascripts/application.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 3c3fc888a..864df805d 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -464,9 +464,11 @@ function updateBulkEditFrom(url) { } function observeAutocompleteField(fieldId, url) { - $('#'+fieldId).autocomplete({ - source: url, - minLength: 2 + $(document).ready(function() { + $('#'+fieldId).autocomplete({ + source: url, + minLength: 2 + }); }); } |