X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ecac19745b5a3a96755ab5129c60290cb4c338f4..ca8f4e8fef80cb603117ed579da8554f503698e5:/src/wolnelektury/static/js/book_text/references.js diff --git a/src/wolnelektury/static/js/book_text/references.js b/src/wolnelektury/static/js/book_text/references.js index 1a284a0eb..ef6c51c94 100644 --- a/src/wolnelektury/static/js/book_text/references.js +++ b/src/wolnelektury/static/js/book_text/references.js @@ -606,7 +606,8 @@ $('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(); let sel = window.getSelection();