chifailai2 / jquery-datatables-column-filter

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

Select filter - options with space in them, not displaying after page refresh with bStateSave: true #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set up a select filter with several options, some of which have spaces in 
them.
2. Use bStateSave: true in the datatable.
3. select an item with space, and refresh page

What is the expected output? What do you see instead?

Expected: selected item is displayed in the select, and filter is in place.
Actual: Blank item is displayed in the select, but filter is in place.

What version of the product are you using? On what operating system?

datatables 1.9.4 and columnfilter 1.5.0

Please provide any additional information below.

Quick fix - change:

var currentFilter = oTable.fnSettings().aoPreSearchCols[i].sSearch;

to:

var currentFilter = escape(oTable.fnSettings().aoPreSearchCols[i].sSearch);

Original issue reported on code.google.com by DaveGY...@gmail.com on 20 Oct 2012 at 12:45

GoogleCodeExporter commented 8 years ago
My issue is very similar.  It doesn't matter if the filter text has a space in 
it or not, after refresh, the filtering occurs but the select list has no 
options.  I have to clear cookies in order to remove the filtering.

I tried the Quick fix by the OP with no luck.

Original comment by ryanehar...@gmail.com on 23 Dec 2013 at 6:19