X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/65a1f637391920c91a42cfd36695e55b84a1eb95..44eab50197af905e0099802c50e37eb8481481c1:/wolnelektury/media/js/book.js?ds=inline 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}}); });