projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c76f612
)
Use rotate/scale if passed in
author
Michael Ang
<mang@archive.org>
Mon, 21 Sep 2009 21:39:40 +0000
(21:39 +0000)
committer
Michael Ang
<mang@archive.org>
Mon, 21 Sep 2009 21:39:40 +0000
(21:39 +0000)
GnuBookIA/datanode/GnuBookJSIA.php
patch
|
blob
|
history
diff --git
a/GnuBookIA/datanode/GnuBookJSIA.php
b/GnuBookIA/datanode/GnuBookJSIA.php
index
d8566b0
..
49881a3
100755
(executable)
--- a/
GnuBookIA/datanode/GnuBookJSIA.php
+++ b/
GnuBookIA/datanode/GnuBookJSIA.php
@@
-141,10
+141,15
@@
gb.getPageURI = function(index, reduce, rotate) {
if ('undefined' == typeof(reduce)) {
_reduce = 1;
+ } else {
+ _reduce = reduce;
}
if ('undefined' == typeof(rotate)) {
_rotate = 0;
+ } else {
+ _rotate = rotate;
}
+
var leafStr = '0000';
var imgStr = this.leafMap[index].toString();
var re = new RegExp("0{"+imgStr.length+"}$");