fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added caching to book_text view.
[wolnelektury.git]
/
wolnelektury
/
media
/
js
/
book.js
diff --git
a/wolnelektury/media/js/book.js
b/wolnelektury/media/js/book.js
index
cfb9ab0
..
108c267
100644
(file)
--- a/
wolnelektury/media/js/book.js
+++ b/
wolnelektury/media/js/book.js
@@
-5,9
+5,9
@@
$(function() {
$('#menu li a[href="#toc"]').remove();
}
$('#menu li a[href="#toc"]').remove();
}
- $('#toc a').click(function(event) {
+ $('#toc a
, #themes a
').click(function(event) {
event.preventDefault();
event.preventDefault();
- $('#menu li a.selected
[href="#toc"]
').click();
+ $('#menu li a.selected').click();
$.scrollTo('a[name="' + $(this).attr('href').slice(1) + '"]', {offset: {top: -50, left: 0}});
});
$.scrollTo('a[name="' + $(this).attr('href').slice(1) + '"]', {offset: {top: -50, left: 0}});
});