X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f0f0f13c94ff22d0f8a105c604252c6d678a9bab..4faaa8414a1038804df9999a094c8dfe4c5f513f:/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 9fd69282c..1a284a0eb 100644 --- a/src/wolnelektury/static/js/book_text/references.js +++ b/src/wolnelektury/static/js/book_text/references.js @@ -605,6 +605,8 @@ }); $('a.anchor').on('click', function(e) { + // Workaround for bad TOC markers. + if (($this).closest('#toc').length) return; e.preventDefault(); let sel = window.getSelection();