Fixed updateCell child row handling

cache[ c.columns ].$row doesnt need to be updated in updateCell.
This commit is contained in:
Andy Sleigh 2017-04-08 08:50:42 +01:00 committed by Rob Garrison
parent e44c239a81
commit 1b87904fe7
2 changed files with 1 additions and 13 deletions

View File

@ -4,7 +4,7 @@
*/ */
/*! tablesorter (FORK) - updated 04-07-2017 (v2.28.7)*/ /*! tablesorter (FORK) - updated 04-08-2017 (v2.28.7)*/
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */ /* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
(function(factory) { (function(factory) {
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
@ -1346,12 +1346,6 @@
cache[ c.columns ].raw[ icell ] = tmp; cache[ c.columns ].raw[ icell ] = tmp;
tmp = ts.getParsedText( c, cell, icell, tmp ); tmp = ts.getParsedText( c, cell, icell, tmp );
cache[ icell ] = tmp; // parsed cache[ icell ] = tmp; // parsed
var tmpRow = cache[c.columns].$row;
if (tmpRow.length == 2) {
// reapply child row
$row = $row.add(tmpRow[1]);
}
cache[ c.columns ].$row = $row;
if ( ( c.parsers[ icell ].type || '' ).toLowerCase() === 'numeric' ) { if ( ( c.parsers[ icell ].type || '' ).toLowerCase() === 'numeric' ) {
// update column max value (ignore sign) // update column max value (ignore sign)
tbcache.colMax[ icell ] = Math.max( Math.abs( tmp ) || 0, tbcache.colMax[ icell ] || 0 ); tbcache.colMax[ icell ] = Math.max( Math.abs( tmp ) || 0, tbcache.colMax[ icell ] || 0 );

View File

@ -1328,12 +1328,6 @@
cache[ c.columns ].raw[ icell ] = tmp; cache[ c.columns ].raw[ icell ] = tmp;
tmp = ts.getParsedText( c, cell, icell, tmp ); tmp = ts.getParsedText( c, cell, icell, tmp );
cache[ icell ] = tmp; // parsed cache[ icell ] = tmp; // parsed
var tmpRow = cache[c.columns].$row;
if (tmpRow.length == 2) {
// reapply child row
$row = $row.add(tmpRow[1]);
}
cache[ c.columns ].$row = $row;
if ( ( c.parsers[ icell ].type || '' ).toLowerCase() === 'numeric' ) { if ( ( c.parsers[ icell ].type || '' ).toLowerCase() === 'numeric' ) {
// update column max value (ignore sign) // update column max value (ignore sign)
tbcache.colMax[ icell ] = Math.max( Math.abs( tmp ) || 0, tbcache.colMax[ icell ] || 0 ); tbcache.colMax[ icell ] = Math.max( Math.abs( tmp ) || 0, tbcache.colMax[ icell ] || 0 );