X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/292be7b4adfea60105ba78d74ace7425eb7a4284..ea710efc8f7d2a23c42e179ab01d73d78db32931:/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();