X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b89eaee8db7e1d44278a65cdf9a42d035ecab50a..16cd04fd9a99685907cdbabda5d192221ff5268c:/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 293b9e3fa..3b6ea4043 100644 --- a/apps/wolnelektury_core/static/js/search.js +++ b/apps/wolnelektury_core/static/js/search.js @@ -7,6 +7,7 @@ var __bind = function (self, fn) { $.widget("wl.search", { options: { minLength: 0, + dataType: "json", }, _create: function() { @@ -15,6 +16,7 @@ var __bind = function (self, fn) { select: __bind(this, this.enter), focus: function() { return false; }, source: this.element.data('source'), + dataType: options.dataType, }; this.element.autocomplete($.extend(opts, this.options))