X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/458cde9daddd763e2cc62fce450d361876beee13..7b8e0d73cd11dd7a4de5d8ffd028a740f345d572:/wolnelektury/media/js/book.js diff --git a/wolnelektury/media/js/book.js b/wolnelektury/media/js/book.js index dcab8b125..fb4467f7b 100644 --- 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'));