diff --git a/public/src/js/controllers/blocks.js b/public/src/js/controllers/blocks.js index a6873f491..9c2d783e4 100644 --- a/public/src/js/controllers/blocks.js +++ b/public/src/js/controllers/blocks.js @@ -78,6 +78,11 @@ angular.module('insight.blocks').controller('BlocksController', $scope.loading = false; $scope.blocks = res.blocks; $scope.pagination = res.pagination; + $scope.pagination.olderBlocks = $scope.pagination.moreTs; + for (var key in $scope.blocks) + { + if($scope.blocks[key].time < $scope.pagination.olderBlocks) $scope.pagination.olderBlocks = $scope.blocks[key].time; + } }); }; diff --git a/public/views/block_list.html b/public/views/block_list.html index 7e1066b4e..ff8e82df2 100644 --- a/public/views/block_list.html +++ b/public/views/block_list.html @@ -58,8 +58,8 @@

- Lastest block from date - Older blocks from this date + Lastest block from date + Older blocks from this date