Merge branch 'staging'
[wolnelektury.git] / 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);