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:
Mottie 2014-07-28 17:40:00 -05:00
parent 56054eaede
commit d499e43509

View File

@ -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);