fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix hearts
[wolnelektury.git]
/
src
/
wolnelektury
/
static
/
js
/
book_text
/
progress.js
diff --git
a/src/wolnelektury/static/js/book_text/progress.js
b/src/wolnelektury/static/js/book_text/progress.js
index
ae5b14a
..
723e03e
100644
(file)
--- a/
src/wolnelektury/static/js/book_text/progress.js
+++ b/
src/wolnelektury/static/js/book_text/progress.js
@@
-4,6
+4,8
@@
function upd_t() {
$text = $('#main-text #book-text');
function upd_t() {
$text = $('#main-text #book-text');
+ if (!$text.length) return;
+
texttop = $text.offset().top;
$footnotes = $('#footnotes', $text);
texttop = $text.offset().top;
$footnotes = $('#footnotes', $text);