From: Michael M Slusarz Date: Fri, 23 Oct 2009 03:56:38 +0000 (-0600) Subject: Fix missing view parameter X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7e2f2832cebc5b13986c92ab03e46794f72127a3;p=horde.git Fix missing view parameter --- diff --git a/imp/js/ViewPort.js b/imp/js/ViewPort.js index 1d4edd647..c7ab8ea78 100644 --- a/imp/js/ViewPort.js +++ b/imp/js/ViewPort.js @@ -146,9 +146,9 @@ var ViewPort = Class.create({ Event.observe(window, 'resize', this.onResize.bind(this)); }, - // view = ID of view. + // view = (string) ID of view. // search = (object) Search parameters - // background = Load view in background? + // background = (boolean) Load view in background? loadView: function(view, search, background) { var buffer, curr, init = true, opts = {}, ps; @@ -527,7 +527,8 @@ var ViewPort = Class.create({ // rownum = (integer) Row number // nearing = (string) 'bottom', 'top', null - _getSliceBounds: function(rownum, nearing) + // view = (string) ID of view. + _getSliceBounds: function(rownum, nearing, view) { var b_size = this.bufferSize(), ob = {}, trows; @@ -551,7 +552,7 @@ var ViewPort = Class.create({ * the unused buffer space to the other endpoint. Always allow * searching past the value of total_rows, since the size of the * dataset may have increased. */ - trows = this.getMetaData('total_rows'); + trows = this.getMetaData('total_rows', view); if (trows) { ob.end = ob.start + b_size;