Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
josecebe#172 Change totalPages instead of remove the twbsPagination e…
…lement and recreate it (josecebe#173)
  • Loading branch information
josecebe committed Jul 23, 2018
1 parent 7c32fb9 commit fa9e8d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jquery.twbsPagination.js
Expand Up @@ -241,6 +241,11 @@
});
},

changeTotalPages: function(totalPages, currentPage) {
this.options.totalPages = totalPages;
this.show(currentPage);
},

makeHref: function (page) {
return this.options.href ? this.generateQueryString(page) : "#";
},
Expand Down

0 comments on commit fa9e8d6

Please sign in to comment.