You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the latest version 2.1 of tableSorter plugin and tablesorter.widget.js files today. Its a great plugin and loving it. But found an issue with this update.
I was testing with filter_startsWith property set to True. It was working in IE but not in FF/Chrome
So I found the issue and fixed it. In the file "jquery.tablesorter.widget.js" file, in the code for "Filter" widget following line
x = ($td.eq(i).text() + t).toLowerCase().indexOf(v[i]);
has to be replaced with
x = $.trim(($td.eq(i).text() + t)).toLowerCase().indexOf(v[i]);
That is trimming the content of column and finding the indexOf filter text. With some spaces, it was always getting the index to be greater than zero, and thus making it false always. Result is no rows are shown for the filter text.
Hope this helps. Thanks
But a great plugin. works like a charm. Thanks a lot.
The text was updated successfully, but these errors were encountered:
I got the latest version 2.1 of tableSorter plugin and tablesorter.widget.js files today. Its a great plugin and loving it. But found an issue with this update.
I was testing with filter_startsWith property set to True. It was working in IE but not in FF/Chrome
So I found the issue and fixed it. In the file "jquery.tablesorter.widget.js" file, in the code for "Filter" widget following line
x = ($td.eq(i).text() + t).toLowerCase().indexOf(v[i]);
has to be replaced with
x = $.trim(($td.eq(i).text() + t)).toLowerCase().indexOf(v[i]);
That is trimming the content of column and finding the indexOf filter text. With some spaces, it was always getting the index to be greater than zero, and thus making it false always. Result is no rows are shown for the filter text.
Hope this helps. Thanks
But a great plugin. works like a charm. Thanks a lot.
The text was updated successfully, but these errors were encountered: