search feature and links

search feature and links

mfreremfrere Posts: 4Questions: 0Answers: 0
edited February 2013 in Bug reports
Hi,

I'm currently facing an issue when using the search feature and html links.

Sorting works as expected -> sorts on link text instead of href, title, ...
Filtering however looks at the attributes inside the link tag.

sType is probably automatically detected correctly as sorting works just fine, but I still tried defining "sType": "html" in "aoColumns" without success (as described in http://datatables.net/ref#sType)

You can witness the same behavior in this example (eg: type "article" or "co.uk/article/" in the search box):
http://datatables.net/examples/advanced_init/html_sort.html

I'm using DataTables 1.9.4
Is this a bug? Or should I define another parameter like sType, but for the search feature?

Michael

Replies

  • allanallan Posts: 61,438Questions: 1Answers: 10,052 Site admin
    This is a bug that was introduced in 1.9.4 :-(. This commit fixes the issue: https://github.com/DataTables/DataTables/commit/065c2cc . It will be included in the next release of DataTables.

    Allan
  • mfreremfrere Posts: 4Questions: 0Answers: 0
    Many thanks for the quick reply, Allan! I'll use your fix.

    Michael

    PS: DataTables is awesome!!
This discussion has been closed.