fixed a bug with pagination
This commit is contained in:
parent
04f0192a1b
commit
0e027eb037
|
@ -50,8 +50,8 @@
|
|||
}
|
||||
|
||||
$scope.search = function(field, value) {
|
||||
var path = "/results/";
|
||||
if (field) { path += encodeURIComponent(field); }
|
||||
var path = "/results";
|
||||
if (field) { path += '/' + encodeURIComponent(field); }
|
||||
path += '/0/' + pageSize();
|
||||
|
||||
$timeout(function() {
|
||||
|
@ -86,8 +86,8 @@
|
|||
|
||||
$scope.gotoPage = function(page) {
|
||||
$scope.results = [];
|
||||
var path = "/results/";
|
||||
if ($scope.field) { path += encodeURIComponent($scope.field); }
|
||||
var path = "/results";
|
||||
if ($scope.field) { path += '/' + encodeURIComponent($scope.field); }
|
||||
path += '/' + page + '/' + $scope.pageSize;
|
||||
$location.path(path).search('value', $scope.value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue