Merge "Pagination error in active/merged/invalid stories in projects resolved."
This commit is contained in:
commit
38423acddd
|
@ -35,14 +35,20 @@ angular.module('sb.projects').controller('ProjectStoryListController',
|
||||||
$scope.isSearching = false;
|
$scope.isSearching = false;
|
||||||
$scope.filter = 'active';
|
$scope.filter = 'active';
|
||||||
|
|
||||||
|
$scope.offsets = {
|
||||||
|
'active': 0,
|
||||||
|
'merged': 0,
|
||||||
|
'invalid': 0
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* Set the filter and refresh the search.
|
* Set the filter and refresh the search.
|
||||||
*/
|
*/
|
||||||
$scope.setFilter = function (state) {
|
$scope.setFilter = function (state) {
|
||||||
|
$scope.offsets[$scope.filter] = $scope.searchOffset;
|
||||||
$scope.filter = state;
|
$scope.filter = state;
|
||||||
|
$scope.searchOffset = $scope.offsets[$scope.filter];
|
||||||
$scope.search();
|
$scope.search();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The search method.
|
* The search method.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue