X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ec93d5082ab137ec690f310eb6eba3c54d10b825..0a693dbc08fd1c2c95538f627985fc03f9e3b684:/apps/catalogue/fields.py?ds=inline

diff --git a/apps/catalogue/fields.py b/apps/catalogue/fields.py
index 853a321ca..57ce58189 100644
--- a/apps/catalogue/fields.py
+++ b/apps/catalogue/fields.py
@@ -108,7 +108,8 @@ class JQueryAutoCompleteSearchWidget(JQueryAutoCompleteWidget):
         $('#%s')
         .autocomplete($.extend({
           minLength: 0,
-          select: autocomplete_result_handler
+          select: autocomplete_result_handler,
+          focus: function (ui, item) { return false; }
         }, %s))
         .data("autocomplete")._renderItem = autocomplete_format_item;
         """ % (field_id, options)