X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3c3017d22da6f0a990ee88417e6e79ed7450245c..ea8925059c81175c3a432a006779764d65308ad8:/wolnelektury/templates/lessons/document_list.html?ds=inline diff --git a/wolnelektury/templates/lessons/document_list.html b/wolnelektury/templates/lessons/document_list.html index 84dee5352..d8564a590 100644 --- a/wolnelektury/templates/lessons/document_list.html +++ b/wolnelektury/templates/lessons/document_list.html @@ -17,9 +17,9 @@ } return false; }); - + var lastHash = null; - + function checkHash() { if (document.location.hash != lastHash) { lastHash = document.location.hash; @@ -28,7 +28,7 @@ $('#document-list a').removeClass('active'); documentLink.addClass('active'); }; - + if ($('#document-detail').attr('data-hash') != lastHash) { $('#document-detail') .attr('data-hash', lastHash) @@ -37,10 +37,10 @@ } else if (!document.location.hash) { $('#document-list a:first').click(); } - + setTimeout(checkHash, 500); }; - + checkHash(); }); @@ -48,9 +48,9 @@ {% block body %}

{% trans "Hand-outs for teachers" %}

-

{{ form.q }} {% trans "or" %} {% trans "return to homepage" %}

+

{{ form.q }} {% trans "or" %} {% trans "return to main page" %}

- +
    {% for object in object_list %} @@ -61,4 +61,3 @@
    {% endblock %} - \ No newline at end of file