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