fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
for bible
[wolnelektury.git]
/
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
1a284a0
..
fa4a35a
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.
$('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();
e.preventDefault();
let sel = window.getSelection();
@@
-614,7
+615,7
@@
let range = document.createRange();
let $p = $(this).nextAll('.paragraph').first()
let range = document.createRange();
let $p = $(this).nextAll('.paragraph').first()
- range.selectNode($p[0]);
+ range.selectNode
Contents
($p[0]);
sel.addRange(range);
qbox.showForSelection(sel);
sel.addRange(range);
qbox.showForSelection(sel);