mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Fixed updateCell to work correctly with child rows
This commit is contained in:
parent
95770d7432
commit
e44c239a81
9
dist/js/jquery.tablesorter.combined.js
vendored
9
dist/js/jquery.tablesorter.combined.js
vendored
@ -1,4 +1,4 @@
|
||||
/*! tablesorter (FORK) - updated 04-04-2017 (v2.28.7)*/
|
||||
/*! tablesorter (FORK) - updated 04-07-2017 (v2.28.7)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -1319,7 +1319,7 @@
|
||||
cell = $cell[ 0 ]; // in case cell is a jQuery object
|
||||
// tbody may not exist if update is initialized while tbody is removed for processing
|
||||
if ( $tbodies.length && tbodyIndex >= 0 ) {
|
||||
row = $tbodies.eq( tbodyIndex ).find( 'tr' ).index( $row );
|
||||
row = $tbodies.eq( tbodyIndex ).find( 'tr' ).not( '.' + c.cssChildRow ).index( $row );
|
||||
cache = tbcache.normalized[ row ];
|
||||
len = $row[ 0 ].cells.length;
|
||||
if ( len !== c.columns ) {
|
||||
@ -1340,6 +1340,11 @@
|
||||
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)
|
||||
|
8
dist/js/jquery.tablesorter.combined.min.js
vendored
8
dist/js/jquery.tablesorter.combined.min.js
vendored
File diff suppressed because one or more lines are too long
7
dist/js/jquery.tablesorter.js
vendored
7
dist/js/jquery.tablesorter.js
vendored
@ -1317,7 +1317,7 @@
|
||||
cell = $cell[ 0 ]; // in case cell is a jQuery object
|
||||
// tbody may not exist if update is initialized while tbody is removed for processing
|
||||
if ( $tbodies.length && tbodyIndex >= 0 ) {
|
||||
row = $tbodies.eq( tbodyIndex ).find( 'tr' ).index( $row );
|
||||
row = $tbodies.eq( tbodyIndex ).find( 'tr' ).not( '.' + c.cssChildRow ).index( $row );
|
||||
cache = tbcache.normalized[ row ];
|
||||
len = $row[ 0 ].cells.length;
|
||||
if ( len !== c.columns ) {
|
||||
@ -1338,6 +1338,11 @@
|
||||
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)
|
||||
|
4
dist/js/jquery.tablesorter.min.js
vendored
4
dist/js/jquery.tablesorter.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
||||
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
||||
*/
|
||||
/*! tablesorter (FORK) - updated 04-04-2017 (v2.28.7)*/
|
||||
/*! tablesorter (FORK) - updated 04-07-2017 (v2.28.7)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -1325,7 +1325,7 @@
|
||||
cell = $cell[ 0 ]; // in case cell is a jQuery object
|
||||
// tbody may not exist if update is initialized while tbody is removed for processing
|
||||
if ( $tbodies.length && tbodyIndex >= 0 ) {
|
||||
row = $tbodies.eq( tbodyIndex ).find( 'tr' ).index( $row );
|
||||
row = $tbodies.eq( tbodyIndex ).find( 'tr' ).not( '.' + c.cssChildRow ).index( $row );
|
||||
cache = tbcache.normalized[ row ];
|
||||
len = $row[ 0 ].cells.length;
|
||||
if ( len !== c.columns ) {
|
||||
@ -1346,6 +1346,11 @@
|
||||
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)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! TableSorter (FORK) v2.28.7 *//*
|
||||
/*! TableSorter (FORK) v2.28.7 *//*
|
||||
* Client-side table sorting with ease!
|
||||
* @requires jQuery v1.2.6+
|
||||
*
|
||||
@ -1307,7 +1307,7 @@
|
||||
cell = $cell[ 0 ]; // in case cell is a jQuery object
|
||||
// tbody may not exist if update is initialized while tbody is removed for processing
|
||||
if ( $tbodies.length && tbodyIndex >= 0 ) {
|
||||
row = $tbodies.eq( tbodyIndex ).find( 'tr' ).index( $row );
|
||||
row = $tbodies.eq( tbodyIndex ).find( 'tr' ).not( '.' + c.cssChildRow ).index( $row );
|
||||
cache = tbcache.normalized[ row ];
|
||||
len = $row[ 0 ].cells.length;
|
||||
if ( len !== c.columns ) {
|
||||
@ -1328,6 +1328,11 @@
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user