AJCastuera / jquery-datatables-column-filter

Automatically exported from code.google.com/p/jquery-datatables-column-filter
0 stars 0 forks source link

Select filtering by value? #132

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Pass a 

        {
            type: "select", 
            values: someValues
        },

someValues having value : label pairs, where labels are strings and values id's.

What is the expected output? What do you see instead?
I would expect it to  filter by string values instead of id values.

What version of the product are you using? On what operating system?
Latest, Ubuntu.

Please provide any additional information below.

It can be fixed by changing lines 377, 379:

oTable.fnFilter($(this).val(), iColumn, bRegex);
oTable.fnFilter(unescape($(this).val()), iColumn);

by using $(this).find('option:selected').text().

Or atleast by adding another option to filter by select id's or values.

Original issue reported on code.google.com by dnizetic...@gmail.com on 6 Sep 2013 at 12:07