Skip to content

Commit 9874cb3

Browse files
committed
fix bug page not refresh in search
1 parent 8594649 commit 9874cb3

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

dist/directive.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* angular-rs-datagrid
33
*
4-
* Version: 1.0.56 - 2017-06-05T18:07:01.206Z
4+
* Version: 1.0.56 - 2017-06-07T15:11:18.946Z
55
* License: MIT
66
*/
77

dist/directive.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* angular-rs-datagrid
33
*
4-
* Version: 1.0.56 - 2017-06-05T18:07:01.216Z
4+
* Version: 1.0.56 - 2017-06-07T15:11:19.042Z
55
* License: MIT
66
*/
77

@@ -350,7 +350,11 @@ angular.module('rs.datagrid', ['ui.utils.masks', 'ui.select'])
350350
start = 0;
351351
}
352352
scope.start = start;
353-
scope.end = angular.copy(start+4);
353+
if((start+4) <= totalPages){
354+
scope.end = angular.copy(start+4);
355+
}else{
356+
scope.end = angular.copy(totalPages-1);
357+
}
354358
}
355359

356360
function makePagination() {

dist/directive.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/directive.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)