mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter: target last used filter issue. See #920
This commit is contained in:
parent
261808d2ac
commit
18a97ed4d9
8
dist/js/jquery.tablesorter.combined.js
vendored
8
dist/js/jquery.tablesorter.combined.js
vendored
@ -1,4 +1,4 @@
|
||||
/*! tablesorter (FORK) - updated 05-29-2015 (v2.22.1)*/
|
||||
/*! tablesorter (FORK) - updated 05-31-2015 (v2.22.1)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -3368,7 +3368,7 @@ ts.filter = {
|
||||
return $( b ).attr( 'data-lastSearchTime' ) - $( a ).attr( 'data-lastSearchTime' );
|
||||
});
|
||||
}
|
||||
return $();
|
||||
return $input || $();
|
||||
},
|
||||
multipleColumns: function( c, $input ) {
|
||||
// look for multiple columns '1-3,4-6,8' in data-column
|
||||
@ -4051,8 +4051,8 @@ ts.getFilters = function( table, getRaw, setFilters, skipFirst ) {
|
||||
$column = ts.filter.getLatestSearch( $column );
|
||||
if ( $.isArray( setFilters ) ) {
|
||||
// skip first ( latest input ) to maintain cursor position while typing
|
||||
if ( skipFirst ) {
|
||||
$column.slice( 1 );
|
||||
if ( skipFirst && $column.length > 1 ) {
|
||||
$column = $column.slice( 1 );
|
||||
}
|
||||
if ( i === c.columns ) {
|
||||
// prevent data-column='all' from filling data-column='0,1' ( etc )
|
||||
|
6
dist/js/jquery.tablesorter.combined.min.js
vendored
6
dist/js/jquery.tablesorter.combined.min.js
vendored
File diff suppressed because one or more lines are too long
8
dist/js/jquery.tablesorter.widgets.js
vendored
8
dist/js/jquery.tablesorter.widgets.js
vendored
@ -1,4 +1,4 @@
|
||||
/*! tablesorter (FORK) - updated 05-29-2015 (v2.22.1)*/
|
||||
/*! tablesorter (FORK) - updated 05-31-2015 (v2.22.1)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -1193,7 +1193,7 @@ ts.filter = {
|
||||
return $( b ).attr( 'data-lastSearchTime' ) - $( a ).attr( 'data-lastSearchTime' );
|
||||
});
|
||||
}
|
||||
return $();
|
||||
return $input || $();
|
||||
},
|
||||
multipleColumns: function( c, $input ) {
|
||||
// look for multiple columns '1-3,4-6,8' in data-column
|
||||
@ -1876,8 +1876,8 @@ ts.getFilters = function( table, getRaw, setFilters, skipFirst ) {
|
||||
$column = ts.filter.getLatestSearch( $column );
|
||||
if ( $.isArray( setFilters ) ) {
|
||||
// skip first ( latest input ) to maintain cursor position while typing
|
||||
if ( skipFirst ) {
|
||||
$column.slice( 1 );
|
||||
if ( skipFirst && $column.length > 1 ) {
|
||||
$column = $column.slice( 1 );
|
||||
}
|
||||
if ( i === c.columns ) {
|
||||
// prevent data-column='all' from filling data-column='0,1' ( etc )
|
||||
|
6
dist/js/jquery.tablesorter.widgets.min.js
vendored
6
dist/js/jquery.tablesorter.widgets.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/widgets/widget-filter.min.js
vendored
2
dist/js/widgets/widget-filter.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀▀██
|
||||
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
||||
*/
|
||||
/*! tablesorter (FORK) - updated 05-29-2015 (v2.22.1)*/
|
||||
/*! tablesorter (FORK) - updated 05-31-2015 (v2.22.1)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -3374,7 +3374,7 @@ ts.filter = {
|
||||
return $( b ).attr( 'data-lastSearchTime' ) - $( a ).attr( 'data-lastSearchTime' );
|
||||
});
|
||||
}
|
||||
return $();
|
||||
return $input || $();
|
||||
},
|
||||
multipleColumns: function( c, $input ) {
|
||||
// look for multiple columns '1-3,4-6,8' in data-column
|
||||
@ -4057,8 +4057,8 @@ ts.getFilters = function( table, getRaw, setFilters, skipFirst ) {
|
||||
$column = ts.filter.getLatestSearch( $column );
|
||||
if ( $.isArray( setFilters ) ) {
|
||||
// skip first ( latest input ) to maintain cursor position while typing
|
||||
if ( skipFirst ) {
|
||||
$column.slice( 1 );
|
||||
if ( skipFirst && $column.length > 1 ) {
|
||||
$column = $column.slice( 1 );
|
||||
}
|
||||
if ( i === c.columns ) {
|
||||
// prevent data-column='all' from filling data-column='0,1' ( etc )
|
||||
|
@ -4,7 +4,7 @@
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀▀██
|
||||
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
||||
*/
|
||||
/*! tablesorter (FORK) - updated 05-29-2015 (v2.22.1)*/
|
||||
/*! tablesorter (FORK) - updated 05-31-2015 (v2.22.1)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -1199,7 +1199,7 @@ ts.filter = {
|
||||
return $( b ).attr( 'data-lastSearchTime' ) - $( a ).attr( 'data-lastSearchTime' );
|
||||
});
|
||||
}
|
||||
return $();
|
||||
return $input || $();
|
||||
},
|
||||
multipleColumns: function( c, $input ) {
|
||||
// look for multiple columns '1-3,4-6,8' in data-column
|
||||
@ -1882,8 +1882,8 @@ ts.getFilters = function( table, getRaw, setFilters, skipFirst ) {
|
||||
$column = ts.filter.getLatestSearch( $column );
|
||||
if ( $.isArray( setFilters ) ) {
|
||||
// skip first ( latest input ) to maintain cursor position while typing
|
||||
if ( skipFirst ) {
|
||||
$column.slice( 1 );
|
||||
if ( skipFirst && $column.length > 1 ) {
|
||||
$column = $column.slice( 1 );
|
||||
}
|
||||
if ( i === c.columns ) {
|
||||
// prevent data-column='all' from filling data-column='0,1' ( etc )
|
||||
|
@ -826,7 +826,7 @@ ts.filter = {
|
||||
return $( b ).attr( 'data-lastSearchTime' ) - $( a ).attr( 'data-lastSearchTime' );
|
||||
});
|
||||
}
|
||||
return $();
|
||||
return $input || $();
|
||||
},
|
||||
multipleColumns: function( c, $input ) {
|
||||
// look for multiple columns '1-3,4-6,8' in data-column
|
||||
@ -1509,8 +1509,8 @@ ts.getFilters = function( table, getRaw, setFilters, skipFirst ) {
|
||||
$column = ts.filter.getLatestSearch( $column );
|
||||
if ( $.isArray( setFilters ) ) {
|
||||
// skip first ( latest input ) to maintain cursor position while typing
|
||||
if ( skipFirst ) {
|
||||
$column.slice( 1 );
|
||||
if ( skipFirst && $column.length > 1 ) {
|
||||
$column = $column.slice( 1 );
|
||||
}
|
||||
if ( i === c.columns ) {
|
||||
// prevent data-column='all' from filling data-column='0,1' ( etc )
|
||||
|
Loading…
Reference in New Issue
Block a user