From df8b74bfb645e3f7fb93432d9b8b1907238cb3ca Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Mon, 23 Jun 2014 13:09:09 +0200 Subject: [PATCH] Load bodies when changing folder without scrolling --- src/js/controller/mail-list.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/controller/mail-list.js b/src/js/controller/mail-list.js index 1e5c138..02aa61b 100644 --- a/src/js/controller/mail-list.js +++ b/src/js/controller/mail-list.js @@ -204,10 +204,13 @@ define(function(require) { emailDao.openFolder({ folder: currentFolder() }, function(error) { + // dont wait until scroll to load visible mail bodies + $scope.loadVisibleBodies(); + + // don't display error for offline case if (error && error.code === 42) { return; } - $scope.onError(error); }); }