farizluqman / jquery-datatables-column-filter

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

Settings is Undefined Error #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. include jquery.dataTables.js (v 1.8) and jquery.dataTables.columnFilter.js 
(v 1.2.1

2. initialize datatable with following code:

$('#datatable').dataTable( {
        "bJQueryUI": true,
        "sPaginationType": "full_numbers",
        "bProcessing": true,
        "bServerSide": true,
        "sAjaxSource": window.location.pathname + "/datatable"
    }).columnFilter();

3. everything works, data is properly retrieved when filtering, sorting, 
paginating, BUT in firebug console there is an error: "settings is undefined" 
line 1342 in jquery.dataTables.js.

4. when i remove the columnFilter() initialization, the error goes away.

Original issue reported on code.google.com by adobecol...@yahoo.com on 8 Jul 2011 at 3:52

GoogleCodeExporter commented 9 years ago
I fixed this by modifying line 331 in jquery.dataTables.columnFilter.js file:

original code:

fnServerDataOriginal(sSource, aoData, fnCallback);

modified code:

fnServerDataOriginal(sSource, aoData, fnCallback, oTable.fnSettings());

Original comment by adobecol...@yahoo.com on 8 Jul 2011 at 5:44

GoogleCodeExporter commented 9 years ago
Perfect! That solved my problems I had with IE8. Great work!

Original comment by florian....@googlemail.com on 12 Jul 2011 at 2:42

GoogleCodeExporter commented 9 years ago

Original comment by joc...@gmail.com on 24 Sep 2011 at 9:58

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r23.

Original comment by joc...@gmail.com on 25 Sep 2011 at 12:38

GoogleCodeExporter commented 9 years ago
This code is changed in the version 1.2.5.

Thanks,
Jovan

Original comment by joc...@gmail.com on 25 Sep 2011 at 12:38