projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
896a868
)
fix searchHighlightVisible() for 1up mode
author
rajbot
<raj@archive.org>
Mon, 18 Oct 2010 18:05:26 +0000
(18:05 +0000)
committer
rajbot
<raj@archive.org>
Mon, 18 Oct 2010 18:05:26 +0000
(18:05 +0000)
BookReader/BookReader.js
patch
|
blob
|
history
diff --git
a/BookReader/BookReader.js
b/BookReader/BookReader.js
index
f2765fb
..
a01ea70
100644
(file)
--- a/
BookReader/BookReader.js
+++ b/
BookReader/BookReader.js
@@
-4257,7
+4257,8
@@
BookReader.prototype.searchHighlightVisible = function() {
if (this.constMode2up == this.mode) {
var visiblePages = Array(this.twoPage.currentIndexL, this.twoPage.currentIndexR);
} else if (this.constMode1up == this.mode) {
- var visiblePages = Array(this.currentIndex());
+ var visiblePages = Array();
+ visiblePages[0] = this.currentIndex();
} else {
return false;
}