mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter: restore column specific default filters. Fixes #1088
The code was accidentally removed in v2.24.4
This commit is contained in:
parent
b84b38e6fa
commit
9adc837253
17
dist/js/jquery.tablesorter.combined.js
vendored
17
dist/js/jquery.tablesorter.combined.js
vendored
@ -1,4 +1,4 @@
|
|||||||
/*! tablesorter (FORK) - updated 12-01-2015 (v2.24.6)*/
|
/*! tablesorter (FORK) - updated 12-02-2015 (v2.24.6)*/
|
||||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||||
(function(factory) {
|
(function(factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
@ -406,7 +406,10 @@
|
|||||||
})
|
})
|
||||||
.bind( 'applyWidgetId' + namespace, function( e, id ) {
|
.bind( 'applyWidgetId' + namespace, function( e, id ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
ts.getWidgetById( id ).format( this, this.config, this.config.widgetOptions );
|
var widget = ts.getWidgetById( id );
|
||||||
|
if ( widget ) {
|
||||||
|
widget.format( this, this.config, this.config.widgetOptions );
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.bind( 'applyWidgets' + namespace, function( e, init ) {
|
.bind( 'applyWidgets' + namespace, function( e, init ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -1275,6 +1278,11 @@
|
|||||||
// problems with element focus
|
// problems with element focus
|
||||||
ts.resortComplete( c, callback );
|
ts.resortComplete( c, callback );
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if ( c.debug ) {
|
||||||
|
console.error( 'updateCell aborted, tbody missing or not within the indicated table' );
|
||||||
|
}
|
||||||
|
c.table.isUpdating = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -4103,6 +4111,11 @@
|
|||||||
data.filter = ts.replaceAccents( data.filter );
|
data.filter = ts.replaceAccents( data.filter );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// replace column specific default filters - see #1088
|
||||||
|
if ( wo.filter_defaultFilter && tsfRegex.iQuery.test( vars.defaultColFilter[ columnIndex ] ) ) {
|
||||||
|
data.filter = tsf.defaultFilter( data.filter, vars.defaultColFilter[ columnIndex ] );
|
||||||
|
}
|
||||||
|
|
||||||
// data.iFilter = case insensitive ( if wo.filter_ignoreCase is true ),
|
// data.iFilter = case insensitive ( if wo.filter_ignoreCase is true ),
|
||||||
// data.filter = case sensitive
|
// data.filter = case sensitive
|
||||||
data.iFilter = wo.filter_ignoreCase ? ( data.filter || '' ).toLowerCase() : data.filter;
|
data.iFilter = wo.filter_ignoreCase ? ( data.filter || '' ).toLowerCase() : data.filter;
|
||||||
|
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
10
dist/js/jquery.tablesorter.js
vendored
10
dist/js/jquery.tablesorter.js
vendored
@ -404,7 +404,10 @@
|
|||||||
})
|
})
|
||||||
.bind( 'applyWidgetId' + namespace, function( e, id ) {
|
.bind( 'applyWidgetId' + namespace, function( e, id ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
ts.getWidgetById( id ).format( this, this.config, this.config.widgetOptions );
|
var widget = ts.getWidgetById( id );
|
||||||
|
if ( widget ) {
|
||||||
|
widget.format( this, this.config, this.config.widgetOptions );
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.bind( 'applyWidgets' + namespace, function( e, init ) {
|
.bind( 'applyWidgets' + namespace, function( e, init ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -1273,6 +1276,11 @@
|
|||||||
// problems with element focus
|
// problems with element focus
|
||||||
ts.resortComplete( c, callback );
|
ts.resortComplete( c, callback );
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if ( c.debug ) {
|
||||||
|
console.error( 'updateCell aborted, tbody missing or not within the indicated table' );
|
||||||
|
}
|
||||||
|
c.table.isUpdating = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
2
dist/js/jquery.tablesorter.min.js
vendored
2
dist/js/jquery.tablesorter.min.js
vendored
File diff suppressed because one or more lines are too long
7
dist/js/jquery.tablesorter.widgets.js
vendored
7
dist/js/jquery.tablesorter.widgets.js
vendored
@ -1,4 +1,4 @@
|
|||||||
/*! tablesorter (FORK) - updated 12-01-2015 (v2.24.6)*/
|
/*! tablesorter (FORK) - updated 12-02-2015 (v2.24.6)*/
|
||||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||||
(function(factory) {
|
(function(factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
@ -1457,6 +1457,11 @@
|
|||||||
data.filter = ts.replaceAccents( data.filter );
|
data.filter = ts.replaceAccents( data.filter );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// replace column specific default filters - see #1088
|
||||||
|
if ( wo.filter_defaultFilter && tsfRegex.iQuery.test( vars.defaultColFilter[ columnIndex ] ) ) {
|
||||||
|
data.filter = tsf.defaultFilter( data.filter, vars.defaultColFilter[ columnIndex ] );
|
||||||
|
}
|
||||||
|
|
||||||
// data.iFilter = case insensitive ( if wo.filter_ignoreCase is true ),
|
// data.iFilter = case insensitive ( if wo.filter_ignoreCase is true ),
|
||||||
// data.filter = case sensitive
|
// data.filter = case sensitive
|
||||||
data.iFilter = wo.filter_ignoreCase ? ( data.filter || '' ).toLowerCase() : data.filter;
|
data.iFilter = wo.filter_ignoreCase ? ( data.filter || '' ).toLowerCase() : data.filter;
|
||||||
|
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 12-01-2015 (v2.24.6)*/
|
/*! tablesorter (FORK) - updated 12-02-2015 (v2.24.6)*/
|
||||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||||
(function(factory) {
|
(function(factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
@ -412,7 +412,10 @@
|
|||||||
})
|
})
|
||||||
.bind( 'applyWidgetId' + namespace, function( e, id ) {
|
.bind( 'applyWidgetId' + namespace, function( e, id ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
ts.getWidgetById( id ).format( this, this.config, this.config.widgetOptions );
|
var widget = ts.getWidgetById( id );
|
||||||
|
if ( widget ) {
|
||||||
|
widget.format( this, this.config, this.config.widgetOptions );
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.bind( 'applyWidgets' + namespace, function( e, init ) {
|
.bind( 'applyWidgets' + namespace, function( e, init ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -1281,6 +1284,11 @@
|
|||||||
// problems with element focus
|
// problems with element focus
|
||||||
ts.resortComplete( c, callback );
|
ts.resortComplete( c, callback );
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if ( c.debug ) {
|
||||||
|
console.error( 'updateCell aborted, tbody missing or not within the indicated table' );
|
||||||
|
}
|
||||||
|
c.table.isUpdating = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -4109,6 +4117,11 @@
|
|||||||
data.filter = ts.replaceAccents( data.filter );
|
data.filter = ts.replaceAccents( data.filter );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// replace column specific default filters - see #1088
|
||||||
|
if ( wo.filter_defaultFilter && tsfRegex.iQuery.test( vars.defaultColFilter[ columnIndex ] ) ) {
|
||||||
|
data.filter = tsf.defaultFilter( data.filter, vars.defaultColFilter[ columnIndex ] );
|
||||||
|
}
|
||||||
|
|
||||||
// data.iFilter = case insensitive ( if wo.filter_ignoreCase is true ),
|
// data.iFilter = case insensitive ( if wo.filter_ignoreCase is true ),
|
||||||
// data.filter = case sensitive
|
// data.filter = case sensitive
|
||||||
data.iFilter = wo.filter_ignoreCase ? ( data.filter || '' ).toLowerCase() : data.filter;
|
data.iFilter = wo.filter_ignoreCase ? ( data.filter || '' ).toLowerCase() : data.filter;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
||||||
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
||||||
*/
|
*/
|
||||||
/*! tablesorter (FORK) - updated 12-01-2015 (v2.24.6)*/
|
/*! tablesorter (FORK) - updated 12-02-2015 (v2.24.6)*/
|
||||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||||
(function(factory) {
|
(function(factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
@ -1463,6 +1463,11 @@
|
|||||||
data.filter = ts.replaceAccents( data.filter );
|
data.filter = ts.replaceAccents( data.filter );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// replace column specific default filters - see #1088
|
||||||
|
if ( wo.filter_defaultFilter && tsfRegex.iQuery.test( vars.defaultColFilter[ columnIndex ] ) ) {
|
||||||
|
data.filter = tsf.defaultFilter( data.filter, vars.defaultColFilter[ columnIndex ] );
|
||||||
|
}
|
||||||
|
|
||||||
// data.iFilter = case insensitive ( if wo.filter_ignoreCase is true ),
|
// data.iFilter = case insensitive ( if wo.filter_ignoreCase is true ),
|
||||||
// data.filter = case sensitive
|
// data.filter = case sensitive
|
||||||
data.iFilter = wo.filter_ignoreCase ? ( data.filter || '' ).toLowerCase() : data.filter;
|
data.iFilter = wo.filter_ignoreCase ? ( data.filter || '' ).toLowerCase() : data.filter;
|
||||||
|
@ -1089,6 +1089,11 @@
|
|||||||
data.filter = ts.replaceAccents( data.filter );
|
data.filter = ts.replaceAccents( data.filter );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// replace column specific default filters - see #1088
|
||||||
|
if ( wo.filter_defaultFilter && tsfRegex.iQuery.test( vars.defaultColFilter[ columnIndex ] ) ) {
|
||||||
|
data.filter = tsf.defaultFilter( data.filter, vars.defaultColFilter[ columnIndex ] );
|
||||||
|
}
|
||||||
|
|
||||||
// data.iFilter = case insensitive ( if wo.filter_ignoreCase is true ),
|
// data.iFilter = case insensitive ( if wo.filter_ignoreCase is true ),
|
||||||
// data.filter = case sensitive
|
// data.filter = case sensitive
|
||||||
data.iFilter = wo.filter_ignoreCase ? ( data.filter || '' ).toLowerCase() : data.filter;
|
data.iFilter = wo.filter_ignoreCase ? ( data.filter || '' ).toLowerCase() : data.filter;
|
||||||
|
Loading…
Reference in New Issue
Block a user