Filter: allow anymatch searches with no input

See http://jsfiddle.net/Mottie/856bzzeL/20/
This commit is contained in:
Rob Garrison 2016-05-16 18:51:19 -05:00
parent 9fcacc8a13
commit a6b25ae4c0
No known key found for this signature in database
GPG Key ID: 0A42D160D71978E1
2 changed files with 3 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -1083,12 +1083,11 @@
[]; [];
data.$cells = data.$row.children(); data.$cells = data.$row.children();
if ( data.anyMatchFlag && columnIndex.length > 1 || data.anyMatchFilter ) {
if ( data.anyMatchFlag && columnIndex.length > 1 ) {
data.anyMatch = true; data.anyMatch = true;
data.isMatch = true; data.isMatch = true;
data.rowArray = data.$cells.map( function( i ) { data.rowArray = data.$cells.map( function( i ) {
if ( $.inArray( i, columnIndex ) > -1 ) { if ( $.inArray( i, columnIndex ) > -1 || data.anyMatchFilter ) {
if ( data.parsed[ i ] ) { if ( data.parsed[ i ] ) {
txt = data.cacheArray[ i ]; txt = data.cacheArray[ i ];
} else { } else {
@ -1106,7 +1105,6 @@
data.exact = data.rowArray.join( ' ' ); data.exact = data.rowArray.join( ' ' );
data.iExact = wo.filter_ignoreCase ? data.exact.toLowerCase() : data.exact; data.iExact = wo.filter_ignoreCase ? data.exact.toLowerCase() : data.exact;
data.cache = data.cacheArray.slice( 0, -1 ).join( ' ' ); data.cache = data.cacheArray.slice( 0, -1 ).join( ' ' );
vars.excludeMatch = vars.noAnyMatch; vars.excludeMatch = vars.noAnyMatch;
filterMatched = tsf.processTypes( c, data, vars ); filterMatched = tsf.processTypes( c, data, vars );
if ( filterMatched !== null ) { if ( filterMatched !== null ) {