mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
parent
7b15ec99c5
commit
17a8b2dd63
@ -1473,7 +1473,6 @@
|
|||||||
appendCache : function( c, init ) {
|
appendCache : function( c, init ) {
|
||||||
var parsed, totalRows, $tbody, $curTbody, rowIndex, tbodyIndex, appendTime,
|
var parsed, totalRows, $tbody, $curTbody, rowIndex, tbodyIndex, appendTime,
|
||||||
table = c.table,
|
table = c.table,
|
||||||
wo = c.widgetOptions,
|
|
||||||
$tbodies = c.$tbodies,
|
$tbodies = c.$tbodies,
|
||||||
rows = [],
|
rows = [],
|
||||||
cache = c.cache;
|
cache = c.cache;
|
||||||
@ -1496,7 +1495,7 @@
|
|||||||
for ( rowIndex = 0; rowIndex < totalRows; rowIndex++ ) {
|
for ( rowIndex = 0; rowIndex < totalRows; rowIndex++ ) {
|
||||||
rows[rows.length] = parsed[ rowIndex ][ c.columns ].$row;
|
rows[rows.length] = parsed[ rowIndex ][ c.columns ].$row;
|
||||||
// removeRows used by the pager plugin; don't render if using ajax - fixes #411
|
// removeRows used by the pager plugin; don't render if using ajax - fixes #411
|
||||||
if ( !c.appender || ( c.pager && ( !c.pager.removeRows || !wo.pager_removeRows ) && !c.pager.ajax ) ) {
|
if ( !c.appender || ( c.pager && !c.pager.removeRows && !c.pager.ajax ) ) {
|
||||||
$curTbody.append( parsed[ rowIndex ][ c.columns ].$row );
|
$curTbody.append( parsed[ rowIndex ][ c.columns ].$row );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -158,6 +158,9 @@
|
|||||||
setPage: wo.pager_startPage
|
setPage: wo.pager_startPage
|
||||||
}, c.pager );
|
}, c.pager );
|
||||||
|
|
||||||
|
// Used by core appendCache; !undefined is always true
|
||||||
|
p.removeRows = wo.pager_removeRows;
|
||||||
|
|
||||||
// pager initializes multiple times before table has completed initialization
|
// pager initializes multiple times before table has completed initialization
|
||||||
if ( p.isInitializing ) { return; }
|
if ( p.isInitializing ) { return; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user