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