X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/458cde9daddd763e2cc62fce450d361876beee13..e5765b9136262e7d2131b5a9283e495290eb68da:/wolnelektury/media/js/book.js?ds=sidebyside 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'));