From: Radek Czajka Date: Wed, 3 Nov 2010 14:02:48 +0000 (+0100) Subject: #264: fixed history in lessons X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/9e12c8b854e72bf9a661c2a1af033f1b7f3a84d1?ds=sidebyside;hp=-c #264: fixed history in lessons --- 9e12c8b854e72bf9a661c2a1af033f1b7f3a84d1 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);