X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1f74e9a6dc7dd2303f3271ccf4c7a3eb59e3e27e..83b799276e6325f65d1c3502946292f38ce7421a:/apps/catalogue/fields.py?ds=inline 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)