Load bodies when changing folder without scrolling

This commit is contained in:
Tankred Hase 2014-06-23 13:09:09 +02:00
parent fa1fbda11f
commit df8b74bfb6
1 changed files with 4 additions and 1 deletions

View File

@ -204,10 +204,13 @@ define(function(require) {
emailDao.openFolder({ emailDao.openFolder({
folder: currentFolder() folder: currentFolder()
}, function(error) { }, 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) { if (error && error.code === 42) {
return; return;
} }
$scope.onError(error); $scope.onError(error);
}); });
} }