Create jquery.tablesorter.pager.js

This commit is contained in:
Micah 2017-06-08 19:39:38 -04:00 committed by GitHub
parent 90b3a9788d
commit 8b52ba1be4

View File

@ -329,8 +329,8 @@
h = $.data(table, 'pagerSavedHeight');
if (h) {
var bs = 0;
if($(table).css('border-spacing').split(" ").length>0){
bs = $(table).css('border-spacing').split(" ")[0].replace(/[^-\d\.]/g, '');
if($(table).css('border-spacing').split(" ").length>1){
bs = $(table).css('border-spacing').split(" ")[1].replace(/[^-\d\.]/g, '');
}
d = h - $b.height()+(bs*p.size)-bs;
if ( d > 5 && $.data(table, 'pagerLastSize') === p.size &&