#264: fixed history in lessons
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 3 Nov 2010 14:02:48 +0000 (15:02 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 3 Nov 2010 14:02:48 +0000 (15:02 +0100)
wolnelektury/templates/lessons/document_list.html

index 2f1c848..00d161f 100644 (file)
@@ -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);