fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ZipFiles (does not work?).
[wolnelektury.git]
/
wolnelektury
/
media
/
js
/
book.js
diff --git
a/wolnelektury/media/js/book.js
b/wolnelektury/media/js/book.js
index
dcab8b1
..
fb4467f
100644
(file)
--- a/
wolnelektury/media/js/book.js
+++ b/
wolnelektury/media/js/book.js
@@
-17,7
+17,7
@@
$(function() {
// On page load, scroll to anchor
scrollToAnchor(window.location.hash)
// On page load, scroll to anchor
scrollToAnchor(window.location.hash)
- $('
body').delegate('click', '#toc a, #themes a, .anchor, .annotation
', function(event) {
+ $('
#toc, #themes, #book-text').delegate('click', 'a
', function(event) {
event.preventDefault();
$('#menu li a.selected').click();
scrollToAnchor($(this).attr('href'));
event.preventDefault();
$('#menu li a.selected').click();
scrollToAnchor($(this).attr('href'));