diff --git a/lathermail/web/static/js/lathermail.js b/lathermail/web/static/js/lathermail.js index 3262355..50df7f7 100644 --- a/lathermail/web/static/js/lathermail.js +++ b/lathermail/web/static/js/lathermail.js @@ -55,7 +55,7 @@ lathermailApp.controller('lathermailCtrl', function ($scope, $http, $routeParams $scope.messages = null; $scope.selectedMessage = null; $scope.offset = 0; - $scope.offsetStep = 2; + $scope.offsetStep = 10; $scope.refreshMessages = function (isInboxChanged) { if (isInboxChanged) {$scope.offset = 0} @@ -102,8 +102,8 @@ lathermailApp.controller('lathermailCtrl', function ($scope, $http, $routeParams else { $scope.offset !== 0 ? $scope.offset -= $scope.offsetStep : $scope.offset = 0 ; } - $scope.refreshMessages(); - $scope.selectMessage($scope.messages[0]); + $scope.refreshMessages(); + $scope.selectMessage($scope.messages[0]); }; $scope.selectMessage = function (message) {