X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1f74e9a6dc7dd2303f3271ccf4c7a3eb59e3e27e..efe8b4c05710dc2385b2aaf0b8a6a93778f53972:/apps/catalogue/fields.py diff --git a/apps/catalogue/fields.py b/apps/catalogue/fields.py index 1c0eb4a22..160167ef2 100644 --- a/apps/catalogue/fields.py +++ b/apps/catalogue/fields.py @@ -83,7 +83,7 @@ class JQueryAutoCompleteWidget(forms.TextInput): if self.options: options += ', %s' % self.options - return u'$(\'#%s\').autocomplete(%s%s);' % (field_id, source, options) + return u'$(\'#%s\').autocomplete(%s%s).result(autocomplete_result_handler);' % (field_id, source, options) def render(self, name, value=None, attrs=None): final_attrs = self.build_attrs(attrs, name=name)