X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9c13fb6245a966d5890b11e7e0d8ccb6692cfacd..fddf0ef87d70d72448586e1cdd844c795fdea5c5:/wolnelektury/templates/lessons/document_list.html?ds=sidebyside diff --git a/wolnelektury/templates/lessons/document_list.html b/wolnelektury/templates/lessons/document_list.html index 79ba80d5c..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(); }); @@ -50,7 +50,7 @@
- +