fix autocomplete
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Thu, 2 Feb 2012 15:57:28 +0000 (16:57 +0100)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Thu, 2 Feb 2012 15:57:28 +0000 (16:57 +0100)
wolnelektury/static/js/search.js

index e810246..6afc4a3 100644 (file)
@@ -29,8 +29,8 @@ var __bind = function (self, fn) {
    
        render_item: function (ul, item) {
            return $("<li></li>").data('item.autocomplete', item)
-               .append('<span class="search-hint-label"><a href="'+item.url+'">'+item.label+'</a></span>'+
-                       '<span class="search-hint-category mono">'+item.category+'</span>')
+               .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);
        },