X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/65a1f637391920c91a42cfd36695e55b84a1eb95..eb1d613d177717eefddcf9004a4732fa60ba0eac:/wolnelektury/media/js/book.js diff --git a/wolnelektury/media/js/book.js b/wolnelektury/media/js/book.js index cfb9ab088..108c2677b 100644 --- a/wolnelektury/media/js/book.js +++ b/wolnelektury/media/js/book.js @@ -5,9 +5,9 @@ $(function() { $('#menu li a[href="#toc"]').remove(); } - $('#toc a').click(function(event) { + $('#toc a, #themes a').click(function(event) { 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}}); });