mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Core: disable updateCell for child rows
Add warning & note to fix :(
This commit is contained in:
parent
91eb28d7f2
commit
96ad9d0130
@ -1286,6 +1286,12 @@
|
||||
},
|
||||
|
||||
updateCell : function( c, cell, resort, callback ) {
|
||||
// updateCell for child rows is a mess - we'll ignore them for now
|
||||
// eventually I'll break out the "update" row cache code to make everything consistent
|
||||
if ( $( cell ).closest( 'tr' ).hasClass( c.cssChildRow ) ) {
|
||||
console.warn('Tablesorter Warning! "updateCell" for child row content has been disabled, use "update" instead');
|
||||
return;
|
||||
}
|
||||
if ( ts.isEmptyObject( c.cache ) ) {
|
||||
// empty table, do an update instead - fixes #1099
|
||||
ts.updateHeader( c );
|
||||
|
Loading…
Reference in New Issue
Block a user