mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter: update filter_selectSource to accept arrays instead of functions
it was documented to work this way, but it wasn't previously included
This commit is contained in:
parent
56054eaede
commit
d499e43509
@ -1204,6 +1204,8 @@ ts.filter = {
|
||||
if (fxn === true) {
|
||||
// OVERALL source
|
||||
arry = source(table, column, onlyAvail);
|
||||
} else if ($.isArray(fxn)) {
|
||||
arry = fxn;
|
||||
} else if ($.type(source) === 'object' && fxn) {
|
||||
// custom select source function for a SPECIFIC COLUMN
|
||||
arry = fxn(table, column, onlyAvail);
|
||||
|
Loading…
Reference in New Issue
Block a user