X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d52c76021eaf1621b4e55a6eba1df1c0404bd7dd..55bc643c16dc56cf2377bd5c4d6e924d5fc62698:/wolnelektury/static/js/search.js?ds=sidebyside diff --git a/wolnelektury/static/js/search.js b/wolnelektury/static/js/search.js index c41a672d0..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-area 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);