Skip to content

Commit

Permalink
Update to v0.10.1
Browse files Browse the repository at this point in the history
See release notes
  • Loading branch information
michaelbromley committed Feb 24, 2016
1 parent 33bb22b commit 98594f3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularUtils-pagination",
"version": "0.10.0",
"version": "0.10.1",
"homepage": "https://github.com/michaelbromley/angularUtils/tree/master/src/directives/pagination",
"authors": [
"Michael Bromley <michael@michaelbromley.co.uk>"
Expand Down
12 changes: 12 additions & 0 deletions dirPagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
}
});
} else {
paginationService.setAsyncModeFalse(paginationId);
scope.$watchCollection(function() {
return collectionGetter(scope);
}, function(collection) {
Expand Down Expand Up @@ -260,6 +261,13 @@
total: 1
};

scope.$watch('maxSize', function(val) {
if (val) {
paginationRange = Math.max(scope.maxSize, 5);
generatePagination();
}
});

scope.$watch(function() {
if (paginationService.isRegistered(paginationId)) {
return (paginationService.getCollectionLength(paginationId) + 1) * paginationService.getItemsPerPage(paginationId);
Expand Down Expand Up @@ -550,6 +558,10 @@
instances[instanceId].asyncMode = true;
};

this.setAsyncModeFalse = function(instanceId) {
instances[instanceId].asyncMode = false;
};

this.isAsyncMode = function(instanceId) {
return instances[instanceId].asyncMode;
};
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package.describe({
name: 'angularutils:pagination',
summary: 'Magical automatic pagination for anything in AngularJS',
version: '0.10.0',
version: '0.10.1',
git: 'https://github.com/michaelbromley/angularUtils-pagination'
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-utils-pagination",
"version": "0.10.0",
"version": "0.10.1",
"description": "Magical automatic pagination for anything in AngularJS",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 98594f3

Please sign in to comment.