Mottie/tablesorter

Issue initialising empty table with filter-select column

Closed this issue · 2 comments

Hi @Mottie,

We had been using TableSorter 2.14.5 without any problems, but having just updated to 2.15.5 we are getting an error with one of our tables. The table (which includes a filter-select column) is empty when initialised and then updated via AJAX later.

I've replicated the issue in the demo here: http://jsfiddle.net/LXx66/. If you un-comment out the tr element the table initialises fine, it's only when the table is empty that the issue occurs.

I've tracked it down to the change here: 396952b#diff-91dd7fb07f6fad39c868aea0f8750172L372

Line 372 used to check if (c.parsers || !c.parsers && wo.filter_serversideFiltering) before calling ts.filter.init(table, c, wo), but it doesn't anymore - which seems to be causing the issue.

Are you able to have look please?

Thanks.

Hi @afmab!

Yeah, I'm sorry... I did break a lot of things in v2.15 😦

Thanks for reporting this. I'll have it fixed in the next update!

Excellent, that's great.

Thanks for all your work on this plugin - it has made our lives a lot easier!