X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/263e2a71c685149e406d7bee1de93b362970a88f..c4b4a64757ba65018dc24334cb44a12ad2a4316a:/wolnelektury/templates/lessons/document_list.html diff --git a/wolnelektury/templates/lessons/document_list.html b/wolnelektury/templates/lessons/document_list.html index 9d30d519e..d8564a590 100644 --- a/wolnelektury/templates/lessons/document_list.html +++ b/wolnelektury/templates/lessons/document_list.html @@ -1,5 +1,5 @@ -{% load i18n %} {% extends "base.html" %} +{% load i18n %} {% load catalogue_tags chunks %} {% block bodyid %}document-list-body{% endblock %} @@ -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 %}