X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/292be7b4adfea60105ba78d74ace7425eb7a4284..7a27a3fbc14b2049b8d110db15855a625e4c2455:/src/wolnelektury/static/js/book_text/toc.js 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();