From d81f1eefc4f40aaf32336864d892e7ae39348c65 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 7 May 2010 15:28:00 -0600 Subject: [PATCH] Fix selection on initial load --- imp/js/DimpBase.js | 2 +- imp/js/ViewPort.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. * -- 2.11.0