mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Grouping: prevent JS error with ajax & filtering. Fixes #1232
This commit is contained in:
parent
7d16a2e4f6
commit
eb80800d2b
2
dist/js/widgets/widget-grouping.min.js
vendored
2
dist/js/widgets/widget-grouping.min.js
vendored
File diff suppressed because one or more lines are too long
@ -209,6 +209,8 @@
|
||||
end = hasPager ? p.endRow - ( p.ajax ? p.startRow : 0 ): norm_rows.length;
|
||||
for ( ; rowIndex < end; rowIndex++ ) {
|
||||
data.rowData = norm_rows[ rowIndex ];
|
||||
// fixes #1232 - ajax issue; if endRow > norm_rows.length (after filtering), then data.rowData is undefined
|
||||
if (data.rowData) {
|
||||
data.$row = data.rowData[ c.columns ].$row;
|
||||
// fixes #438
|
||||
if ( data.$row.is( ':visible' ) && tsg.types[ data.grouping[ 1 ] ] ) {
|
||||
@ -216,6 +218,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
insertGroupHeader: function( c, wo, data ) {
|
||||
var $header = c.$headerIndexed[ data.column ],
|
||||
|
Loading…
Reference in New Issue
Block a user