Skip to content

Commit

Permalink
Dev: Fix last / end paging buttons disab;e logic was inverted
Browse files Browse the repository at this point in the history
- DD-1098
- DD-1099

Sync to source repo @ae01542c8fad109cdffa27308678a421189df3f0
  • Loading branch information
Allan Jardine committed Sep 6, 2019
1 parent 2cce9ef commit e91319c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"js/jquery.dataTables.min.js"
],
"src-repo": "http://github.com/DataTables/DataTablesSrc",
"last-sync": "7d558460a9e9cda4b0184d9e2668cd2e759f2683",
"last-sync": "ae01542c8fad109cdffa27308678a421189df3f0",
"last-tag": "1.10.19"
}
4 changes: 2 additions & 2 deletions js/jquery.dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -14589,7 +14589,7 @@
case 'next':
btnDisplay = lang.sNext;

if ( page < pages-1 ) {
if ( page === pages-1 ) {
tabIndex = -1;
btnClass += ' ' + disabledClass;
}
Expand All @@ -14598,7 +14598,7 @@
case 'last':
btnDisplay = lang.sLast;

if ( page < pages-1 ) {
if ( page === pages-1 ) {
tabIndex = -1;
btnClass += ' ' + disabledClass;
}
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.dataTables.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e91319c

Please sign in to comment.