Skip to content

Commit 00170ff

Browse files
authored
Merge pull request miaoyaoyao#3 from lunix01/master
Update tm.pagination.js
2 parents a10564c + c469992 commit 00170ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pagination/tm.pagination.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,21 @@ angular.module('tm.pagination', []).directive('tmPagination',[function(){
170170
if(conf.currentPage > 1){
171171
conf.currentPage -= 1;
172172
}
173+
getPagination();
174+
if(conf.onChange) {
175+
conf.onChange();
176+
}
173177
};
174178

175179
// nextPage
176180
scope.nextPage = function() {
177181
if(conf.currentPage < conf.numberOfPages){
178182
conf.currentPage += 1;
179183
}
184+
getPagination();
185+
if(conf.onChange) {
186+
conf.onChange();
187+
}
180188
};
181189

182190
// 变更当前页

0 commit comments

Comments
 (0)