Merge pull request #3 from prmtl/master
[wolnelektury.git] / wolnelektury / static / js / search.js
index 5951b8b..6afc4a3 100644 (file)
@@ -29,7 +29,8 @@ var __bind = function (self, fn) {
    
        render_item: function (ul, item) {
            return $("<li></li>").data('item.autocomplete', item)
-               .append('<a href="'+item.url+'">'+item.label+ ' ('+item.category+')</a>')
+               .append('<a href="'+item.url+'"><span class="search-hint-label">'+item.label+'</span>'+
+                       '<span class="search-hint-category mono">'+item.category+'</span></a>')
                .appendTo(ul);
        },
 
@@ -38,15 +39,6 @@ var __bind = function (self, fn) {
        },
        
 
-
-       });
-
-    $(function() {
-        $("#search").search().labelify({labelledClass: "blur"});
-
-       $(".search-result .see-more-snippets").click(function() {
-           $(this).closest('.search-result').find('.snippets').removeClass('ui-helper-hidden');
-           });
     });