fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#1000: remove buggy links to source on wiki
[wolnelektury.git]
/
wolnelektury
/
templates
/
lessons
/
document_list.html
diff --git
a/wolnelektury/templates/lessons/document_list.html
b/wolnelektury/templates/lessons/document_list.html
index
2f1c848
..
00d161f
100644
(file)
--- 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) {
.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);
}
setTimeout(checkHash, 500);