mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Merge pull request #1021 from linogate/master
data-column="#" (with # > 9) didn't work in external filters.
This commit is contained in:
commit
c447aeba76
@ -907,7 +907,7 @@
|
|||||||
targets = wo.filter_initialized || !$input.filter( wo.filter_anyColumnSelector ).length,
|
targets = wo.filter_initialized || !$input.filter( wo.filter_anyColumnSelector ).length,
|
||||||
columns = [],
|
columns = [],
|
||||||
val = $.trim( tsf.getLatestSearch( $input ).attr( 'data-column' ) || '' );
|
val = $.trim( tsf.getLatestSearch( $input ).attr( 'data-column' ) || '' );
|
||||||
if ( !/[,-]/.test(val) && val.length === 1 ) {
|
if ( /^[0-9]+$/.test(val)) {
|
||||||
return parseInt( val, 10 );
|
return parseInt( val, 10 );
|
||||||
}
|
}
|
||||||
// process column range
|
// process column range
|
||||||
|
Loading…
Reference in New Issue
Block a user