From: Radek Czajka Date: Mon, 26 Aug 2024 08:08:37 +0000 (+0200) Subject: minor fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/ecac19745b5a3a96755ab5129c60290cb4c338f4?ds=sidebyside minor fix --- 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();