mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Treat null filters the same way as undefined filters.
This commit is contained in:
parent
4cb15889d7
commit
426d72b50d
4
dist/js/jquery.tablesorter.combined.js
vendored
4
dist/js/jquery.tablesorter.combined.js
vendored
@ -1,4 +1,4 @@
|
||||
/*! tablesorter (FORK) - updated 01-19-2016 (v2.25.2)*/
|
||||
/*! tablesorter (FORK) - updated 01-20-2016 (v2.25.2)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -3701,7 +3701,7 @@
|
||||
mode = encode ? encodeURIComponent : decodeURIComponent,
|
||||
len = filters.length;
|
||||
for ( indx = 0; indx < len; indx++ ) {
|
||||
if ( typeof filters[ indx ] !== 'undefined' ) {
|
||||
if ( filters[ indx ] ) {
|
||||
filters[ indx ] = mode( filters[ indx ] );
|
||||
}
|
||||
}
|
||||
|
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
4
dist/js/jquery.tablesorter.widgets.js
vendored
4
dist/js/jquery.tablesorter.widgets.js
vendored
@ -1,4 +1,4 @@
|
||||
/*! tablesorter (FORK) - updated 01-19-2016 (v2.25.2)*/
|
||||
/*! tablesorter (FORK) - updated 01-20-2016 (v2.25.2)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -983,7 +983,7 @@
|
||||
mode = encode ? encodeURIComponent : decodeURIComponent,
|
||||
len = filters.length;
|
||||
for ( indx = 0; indx < len; indx++ ) {
|
||||
if ( typeof filters[ indx ] !== 'undefined' ) {
|
||||
if ( filters[ indx ] ) {
|
||||
filters[ indx ] = mode( filters[ indx ] );
|
||||
}
|
||||
}
|
||||
|
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 01-19-2016 (v2.25.2)*/
|
||||
/*! tablesorter (FORK) - updated 01-20-2016 (v2.25.2)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -3707,7 +3707,7 @@
|
||||
mode = encode ? encodeURIComponent : decodeURIComponent,
|
||||
len = filters.length;
|
||||
for ( indx = 0; indx < len; indx++ ) {
|
||||
if ( typeof filters[ indx ] !== 'undefined' ) {
|
||||
if ( filters[ indx ] ) {
|
||||
filters[ indx ] = mode( filters[ indx ] );
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
||||
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
||||
*/
|
||||
/*! tablesorter (FORK) - updated 01-19-2016 (v2.25.2)*/
|
||||
/*! tablesorter (FORK) - updated 01-20-2016 (v2.25.2)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -989,7 +989,7 @@
|
||||
mode = encode ? encodeURIComponent : decodeURIComponent,
|
||||
len = filters.length;
|
||||
for ( indx = 0; indx < len; indx++ ) {
|
||||
if ( typeof filters[ indx ] !== 'undefined' ) {
|
||||
if ( filters[ indx ] ) {
|
||||
filters[ indx ] = mode( filters[ indx ] );
|
||||
}
|
||||
}
|
||||
|
@ -615,7 +615,7 @@
|
||||
mode = encode ? encodeURIComponent : decodeURIComponent,
|
||||
len = filters.length;
|
||||
for ( indx = 0; indx < len; indx++ ) {
|
||||
if ( typeof filters[ indx ] !== 'undefined' ) {
|
||||
if ( filters[ indx ] ) {
|
||||
filters[ indx ] = mode( filters[ indx ] );
|
||||
}
|
||||
}
|
||||
|
@ -163,8 +163,8 @@ jQuery(function($){
|
||||
var processFilters = this.ts.filter.processFilters,
|
||||
filters = [],
|
||||
results = [];
|
||||
filters[1] = 5, filters[2] = 'test', filters[3] = true;
|
||||
results[1] = '5', results[2] = 'test', results[3] = 'true';
|
||||
filters[1] = 5, filters[2] = 'test', filters[3] = true, filters[4] = null;
|
||||
results[1] = '5', results[2] = 'test', results[3] = 'true', results[4] = null;
|
||||
|
||||
assert.deepEqual( processFilters( filters, true ), results );
|
||||
assert.deepEqual( processFilters( filters, false ), results );
|
||||
|
Loading…
Reference in New Issue
Block a user