From: Michael M Slusarz Date: Wed, 18 Nov 2009 06:42:37 +0000 (-0700) Subject: Correctly handle rownum return X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c6d91e81380ef715fba219380bd4af77ef9fbe5d;p=horde.git Correctly handle rownum return --- diff --git a/imp/js/ViewPort.js b/imp/js/ViewPort.js index c00896547..2f0fb8cce 100644 --- 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