X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9fbf0c4158a9427442171629a564e2de7780b5b7..6f8ce976c498b1df0768c0965c0c9dc2e84bda1c:/wolnelektury/static/js/search.js?ds=sidebyside diff --git a/wolnelektury/static/js/search.js b/wolnelektury/static/js/search.js index c41a672d0..6afc4a399 100644 --- a/wolnelektury/static/js/search.js +++ b/wolnelektury/static/js/search.js @@ -29,7 +29,8 @@ var __bind = function (self, fn) { render_item: function (ul, item) { return $("
  • ").data('item.autocomplete', item) - .append(''+item.label+ ' ('+item.category+')') + .append(''+item.label+''+ + ''+item.category+'') .appendTo(ul); }, @@ -38,12 +39,7 @@ var __bind = function (self, fn) { }, - - }); - - $(function() { - $("#search-area input[name=q]").search(); - }); + })(jQuery);