X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dd6284e01f00296294a527ded7e840ac14c5fbb8..bcd038fcea6b45b29ff3831b31f758dcec6b4157:/wolnelektury/static/js/search.js diff --git a/wolnelektury/static/js/search.js b/wolnelektury/static/js/search.js index e58d37256..5951b8b05 100644 --- a/wolnelektury/static/js/search.js +++ b/wolnelektury/static/js/search.js @@ -42,8 +42,12 @@ var __bind = function (self, fn) { }); $(function() { - $("#search input[name=q]").search(); - + $("#search").search().labelify({labelledClass: "blur"}); + + $(".search-result .see-more-snippets").click(function() { + $(this).closest('.search-result').find('.snippets').removeClass('ui-helper-hidden'); + }); }); + })(jQuery);