X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6e32f55e3ef50d9f7d3a291c2388c5220851a9b4..4b5ed2ce2a3a8bf845c2831666661365e0c09f09:/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() {