From: Michael M Slusarz Date: Fri, 7 May 2010 21:28:00 +0000 (-0600) Subject: Fix selection on initial load X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d81f1eefc4f40aaf32336864d892e7ae39348c65;p=horde.git Fix selection on initial load --- diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index 00a225122..7d4dcb48a 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -502,7 +502,7 @@ var DimpBase = { }.bind(this), onContentOffset: function(offset) { if (this.uid) { - var row = this.viewport.getSelection().search({ imapuid: { equal: [ this.uid ] }, view: { equal: [ this.folder ] } }); + var row = this.viewport.createSelection('rownum', $A($R(1, this.viewport.getMetaData('total_rows')))).search({ imapuid: { equal: [ this.uid ] }, view: { equal: [ this.folder ] } }); if (row.size()) { this.rownum = row.get('rownum').first(); } diff --git a/imp/js/ViewPort.js b/imp/js/ViewPort.js index e5c1635cf..74901c2ad 100644 --- a/imp/js/ViewPort.js +++ b/imp/js/ViewPort.js @@ -120,7 +120,7 @@ * params: (string) Current view. * * ViewPort:select - * Fired when rows are deselected. + * Fired when rows are selected. * params: (object) opts = (object) Boolean options [delay, right] * vs = (ViewPort_Selection) A ViewPort_Selection object. *