X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f59de09387c7ceb7d6ab2ccf6ea25cb4be8dacb5..89881ffd8c2da92f115f23b002f48b7e626014d0:/src/wolnelektury/static/js/book_text/references.js?ds=sidebyside diff --git a/src/wolnelektury/static/js/book_text/references.js b/src/wolnelektury/static/js/book_text/references.js index ee7e2bd91..394ec3ffd 100644 --- a/src/wolnelektury/static/js/book_text/references.js +++ b/src/wolnelektury/static/js/book_text/references.js @@ -610,6 +610,7 @@ $('a.anchor').on('click', function(e) { // Workaround for bad TOC markers. if ($(this).closest('#toc').length) return; + if ($(this).closest('.toc').length) return; if ($(this).closest('#wltoc').length) return; e.preventDefault();