projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3972a9f
)
Correctly handle rownum return
author
Michael M Slusarz
<slusarz@curecanti.org>
Wed, 18 Nov 2009 06:42:37 +0000
(23:42 -0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Wed, 18 Nov 2009 07:02:12 +0000
(
00:02
-0700)
imp/js/ViewPort.js
patch
|
blob
|
history
diff --git
a/imp/js/ViewPort.js
b/imp/js/ViewPort.js
index
c008965
..
2f0fb8c
100644
(file)
--- a/
imp/js/ViewPort.js
+++ b/
imp/js/ViewPort.js
@@
-775,7
+775,7
@@
var ViewPort = Class.create({
// TODO: Flag for no _fetchBuffer()?
if (this.view == r.view) {
- this._updateContent(Object.isUndefined(
offset) ? (r.rownum ? Number(r.rownum) - 1 : this.currentOffset()) : offset
);
+ this._updateContent(Object.isUndefined(
r.rownum) ? (Object.isUndefined(offset) ? this.currentOffset() : offset) : Number(r.rownum) - 1
);
} else if (r.rownum) {
// We loaded in the background. If rownumber information was
// provided, we need to save this or else we will position the