Skip to content

Commit

Permalink
Fix messages page size
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakimov committed Jun 19, 2017
1 parent a3fc1ce commit 06987f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lathermail/web/static/js/lathermail.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 06987f4

Please sign in to comment.