mtsampath / jquery-datatables-column-filter

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

filtering server side based table breaks call to fnServerDataOriginal #106

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. setup complete serverside based datatable.
2. enter text in a filter column

What is the expected output? What do you see instead?
Expected is the ajaxcall, which requests server side data to be sent.
Instead a javascript error 

TypeError: oSettings is undefined
"type": oSettings.sServerMethod,
in jquery.dataTables.js "fnServerData": function

occures.

The following patch solved it for me:
-------------------------------------
@@ -326,7 +327,7 @@
                     aoData.push({ "name": "sRangeSeparator", "value": properties.sRangeSeparator });

                     if (fnServerDataOriginal != null) {

-                        fnServerDataOriginal(sSource, aoData, fnCallback);

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

                     }

                     else {

                         $.getJSON(sSource, aoData, function (json) {

-------------------------------------

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

 * @version     1.9.2
 * @file        jquery.dataTables.js

* File:        jquery.dataTables.columnFilter.js
* Version:     0.9.0

Please provide any additional information below.

Original issue reported on code.google.com by jeich...@googlemail.com on 20 Nov 2012 at 2:43

GoogleCodeExporter commented 9 years ago
See issue 100

Original comment by kor...@gmail.com on 11 Dec 2012 at 8:28

GoogleCodeExporter commented 9 years ago
Your patch helped me too! Thanks!

Original comment by kote...@gmail.com on 3 Jan 2013 at 3:51