X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/292be7b4adfea60105ba78d74ace7425eb7a4284..298a2c3414d84d57ec9e691cfbc6d084530af278:/src/wolnelektury/static/js/book_text/toc.js?ds=inline

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();