Skip to content

Commit

Permalink
Fixed updateCell child row handling
Browse files Browse the repository at this point in the history
cache[ c.columns ].$row doesnt need to be updated in updateCell.
  • Loading branch information
Andy Sleigh authored and Mottie committed Apr 12, 2017
1 parent e44c239 commit 1b87904
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
8 changes: 1 addition & 7 deletions js/jquery.tablesorter.combined.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) */
(function(factory) {
if (typeof define === 'function' && define.amd) {
Expand Down Expand Up @@ -1346,12 +1346,6 @@
cache[ c.columns ].raw[ icell ] = tmp;
tmp = ts.getParsedText( c, cell, icell, tmp );
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' ) {
// update column max value (ignore sign)
tbcache.colMax[ icell ] = Math.max( Math.abs( tmp ) || 0, tbcache.colMax[ icell ] || 0 );
Expand Down
6 changes: 0 additions & 6 deletions js/jquery.tablesorter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1328,12 +1328,6 @@
cache[ c.columns ].raw[ icell ] = tmp;
tmp = ts.getParsedText( c, cell, icell, tmp );
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' ) {
// update column max value (ignore sign)
tbcache.colMax[ icell ] = Math.max( Math.abs( tmp ) || 0, tbcache.colMax[ icell ] || 0 );
Expand Down

0 comments on commit 1b87904

Please sign in to comment.