This is aimed at whoever is currently maintaining the Tablesorter
documentation. 2 quick things:

First, at http://tablesorter.com/docs/ there's an example for the
textExtraction parameter that says:

1 var myTextExtraction = function(node)
2 {
3     // extract data from markup and return it
4    return node.childNodes[0].childNodes[0].innerHTML;
5 }
6 $(document).ready(function()
7     {
8         $("#myTable").tableSorter( {textExtraction:
myTextExtraction} );
9     }
10 );

I think on line 8 there myTextExtraction should be in quotes
("myTextExtraction"). It seems counterintuitive  because that is a
variable name, not a string, but I tried it both ways and it only
worked for me being quoted (as a string). I haven't delved into the
code here to see why this is happening.

Second, the same documentation on that page seems to leave out the
fact that using the metadata plugin requires the metadata.js. This
might seem obvious, but there's widgets (like 'zebra') which don't
require extra js includes, and plugins like the Pager, which do, and
the Metadata plugin isn't listed under Companion plugins.
There's a note about this file at the bottom of the page and you can
also figure it out if you look through all of the linked JS files in
the metadata examples, but you shouldn't have to look through all the
links in the source to know to include the link. It would be great if
the maintainer(s) added a note about that.

Otherwise, thanks for the great plugin, works like a charm!

Reply via email to