Kouhei Sutou
null+****@clear*****
Tue Dec 16 22:05:46 JST 2014
Kouhei Sutou 2014-12-16 22:05:46 +0900 (Tue, 16 Dec 2014) New Revision: 01b2feaf20a2c0ab9d4dcb25833bcaf70db2be8e https://github.com/groonga/groonga-admin/commit/01b2feaf20a2c0ab9d4dcb25833bcaf70db2be8e Message: Simplify Modified files: app/scripts/controllers/table-search-controller.js Modified: app/scripts/controllers/table-search-controller.js (+1 -3) =================================================================== --- app/scripts/controllers/table-search-controller.js 2014-12-16 21:27:31 +0900 (d4c740e) +++ app/scripts/controllers/table-search-controller.js 2014-12-16 22:05:46 +0900 (2b8d6a1) @@ -40,9 +40,7 @@ angular.module('groongaAdminApp') } else { $scope.nRecordsInPage = 10; } - if ($scope.parameters.offset && $scope.nRecordsInPage > 0) { - $scope.currentPage = $scope.parameters.offset / $scope.nRecordsInPage; - } + $scope.currentPage = computeCurrentPage($scope.parameters.offset || 0); $scope.maxNPages = 10; $scope.search = search; -------------- next part -------------- HTML����������������������������... Download