$.fn.dataTableExt.ofnSearch[sType] does not work in 1.9.4

$.fn.dataTableExt.ofnSearch[sType] does not work in 1.9.4

davidkonraddavidkonrad Posts: 13Questions: 4Answers: 0
edited March 2014 in DataTables 1.9
Normally we could do this to prepare the content before filtering

[code]
$.fn.dataTableExt.ofnSearch['string'] = function ( data ) {
...
[/code]
see http://jsfiddle.net/Y5ycM/

This does not work in dataTables 1.9.4, see http://jsfiddle.net/27B6B/

The funny thing is, that the code looks the same and should be called in 1.9.4 also, but it never does. Is that a bug, or is there another approach to do this in 1.9.4, not mentioned in the changes?

regards,

Replies

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    Yup - bug in 1.9.4. 1.9.4 broke this part of the code unfortunately. It also effects the removal of HTML tags from the filter, since that was using the same mechanism.

    It is fixed in the 1.10 betas though.

    Allan
  • davidkonraddavidkonrad Posts: 13Questions: 4Answers: 0
    Thank you very much for the quick answer! I suspected it was a bug, tried to figure out how to make the correct call in the sourcecode but gave up :) But it is not more worse that one can use an earlier version or 1.10 :)

    regards,
This discussion has been closed.