fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ea710ef
)
fix for toc events
author
Radek Czajka
<rczajka@rczajka.pl>
Tue, 8 Oct 2024 14:35:44 +0000
(16:35 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 8 Nov 2024 10:28:57 +0000
(11:28 +0100)
src/wolnelektury/static/js/book_text/references.js
patch
|
blob
|
history
diff --git
a/src/wolnelektury/static/js/book_text/references.js
b/src/wolnelektury/static/js/book_text/references.js
index
1a284a0
..
ef6c51c
100644
(file)
--- 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();