X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/990324f54f6e6d1f33c57c4d454ce4276ca65863..9ec75ce00163d9f536b71f786bc89c4117bd7fa0:/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 2f1c848b2..00d161fdd 100644 --- a/wolnelektury/templates/lessons/document_list.html +++ b/wolnelektury/templates/lessons/document_list.html @@ -35,7 +35,9 @@ .load(documentLink.attr('href')); }; } else if (!document.location.hash) { - $('#document-list a:first').click(); + $first = $('#document-list a:first'); + $first.addClass('active'); + location.replace($first.attr('data-hash')); } setTimeout(checkHash, 500);