fixes for book page toc
[wolnelektury.git] / src / wolnelektury / static / js / book_text / references.js
index ee7e2bd..394ec3f 100644 (file)
     $('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();