fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7423768
)
Minor JS bugfix.
author
Radek Czajka
<rczajka@rczajka.pl>
Wed, 13 Jan 2021 13:57:37 +0000
(14:57 +0100)
committer
Radek Czajka
<rczajka@rczajka.pl>
Wed, 13 Jan 2021 13:57:37 +0000
(14:57 +0100)
src/annoy/static/annoy/book_text.js
patch
|
blob
|
history
diff --git
a/src/annoy/static/annoy/book_text.js
b/src/annoy/static/annoy/book_text.js
index
bcc46f0
..
b18f1ab
100644
(file)
--- a/
src/annoy/static/annoy/book_text.js
+++ b/
src/annoy/static/annoy/book_text.js
@@
-25,7
+25,7
@@
}
};
- if (inserts) {
+ if (inserts
.length
) {
var underFold = false;
var counter = 0;
$(".paragraph, .stanza").each(function() {
@@
-46,7
+46,7
@@
return inserts.length > 0;
});
/* Special case for short poems. */
- if (inserts && !counter) {
+ if (inserts
.length
&& !counter) {
inserts[0].insertAfter($(".paragraph, .stanza").last());
}
};