X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/292be7b4adfea60105ba78d74ace7425eb7a4284..2c101e78aee8cd3ccf3f24a0ecaa22fa77593c5c:/src/wolnelektury/static/js/book_text/toc.js?ds=sidebyside diff --git a/src/wolnelektury/static/js/book_text/toc.js b/src/wolnelektury/static/js/book_text/toc.js index d03bbb9bd..d50edeba8 100644 --- a/src/wolnelektury/static/js/book_text/toc.js +++ b/src/wolnelektury/static/js/book_text/toc.js @@ -5,11 +5,11 @@ } if ($('#wltoc li').length > 0) { - $('#menu-toc').show(); + $('a[href="#wltoc"]').show(); } if ($('#wltoc li a').length == 0) { - $('#menu li a[href="#wltoc"]').remove(); + $('a[href="#wltoc"]').remove(); } $("#toc").remove();