Filter: external select causing javascript error. Fixes #702

This commit is contained in:
Mottie 2014-08-04 07:38:22 -05:00
parent 232cfe55a0
commit d55a99eb4c

View File

@ -1140,7 +1140,8 @@ ts.filter = {
result = showRow; // if showRow is true, show that row result = showRow; // if showRow is true, show that row
// in case select filter option has a different value vs text "a - z|A through Z" // in case select filter option has a different value vs text "a - z|A through Z"
ffxn = c.$filters.eq(columnIndex).find('select option:selected').attr('data-function-name') || ''; ffxn = wo.filter_columnFilters ?
c.$filters.add(c.$externalFilters).filter('[data-column="'+ columnIndex + '"]').find('select option:selected').attr('data-function-name') || '' : '';
// replace accents - see #357 // replace accents - see #357
filters[columnIndex] = c.sortLocaleCompare ? ts.replaceAccents(filters[columnIndex]) : filters[columnIndex]; filters[columnIndex] = c.sortLocaleCompare ? ts.replaceAccents(filters[columnIndex]) : filters[columnIndex];