X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2c968d7bbf97b820439c6a997de08cc3411abb07..e1da9fe83615e4096983b4b184e32e5a984fe402:/apps/wolnelektury_core/static/js/search.js diff --git a/apps/wolnelektury_core/static/js/search.js b/apps/wolnelektury_core/static/js/search.js index 6afc4a399..293b9e3fa 100644 --- a/apps/wolnelektury_core/static/js/search.js +++ b/apps/wolnelektury_core/static/js/search.js @@ -16,7 +16,9 @@ var __bind = function (self, fn) { focus: function() { return false; }, source: this.element.data('source'), }; - this.element.autocomplete(opts).data("autocomplete")._renderItem = __bind(this, this.render_item); + + this.element.autocomplete($.extend(opts, this.options)) + .data("autocomplete")._renderItem = __bind(this, this.render_item); }, enter: function(event, ui) { @@ -32,7 +34,7 @@ var __bind = function (self, fn) { .append(''+item.label+''+ ''+item.category+'') .appendTo(ul); - }, + }, destroy: function() {