X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8f0e18f498d6c07937c92d186bfa6b654a1afa14..985ca3a21df2340caa545f27e5f01fd1eb87c9c8:/apps/wiki/templates/wiki/document_list.html diff --git a/apps/wiki/templates/wiki/document_list.html b/apps/wiki/templates/wiki/document_list.html index c2ade35b..f808a1d3 100644 --- a/apps/wiki/templates/wiki/document_list.html +++ b/apps/wiki/templates/wiki/document_list.html @@ -1,4 +1,5 @@ {% extends "wiki/base.html" %} + {% load i18n %} {% block extrabody %} @@ -9,7 +10,7 @@ $(function() { event.preventDefault(); var expr = new RegExp(slugify($('#file-list-filter').val()), 'i'); $('#file-list tbody tr').hide().filter(function(index) { - return expr.test(slugify($('a', this).text())); + return expr.test(slugify( $('a', this).attr('data-id') )); }).show(); } @@ -29,9 +30,27 @@ $(function() {
- {% for file in document_list %} + {% for book in books %}