fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf57591
)
Fixed a book in book.js when link to main page didn't work in book reader.
author
Marek Stępniowski
<marek@stepniowski.com>
Thu, 18 Sep 2008 11:36:45 +0000
(13:36 +0200)
committer
Marek Stępniowski
<marek@stepniowski.com>
Thu, 18 Sep 2008 11:36:45 +0000
(13:36 +0200)
wolnelektury/media/js/book.js
patch
|
blob
|
history
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)
- $('
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'));