jQuery tablesorter - rowspan in headers causes odd behavior -
example of failure:
http://progamonth.com/files/testfile.html
desired behavior:
ideally, headers colspan
shouldn't affect sorting. right now, receive sorting buttons, , if specify headers: {index: {sorter: false}}
each of colspan headers, still affect sorting. when click headers no rowspan or colspan (1.1.2 etc), seem causing sorting occur 4 columns right!
example of working, cannot reproduce:
http://lovepeacenukes.com/tablesorter/2.0/docs/
this page seems show behavior working, can't reproduce this. example rowspan doesn't manually turn headers off, what's going on?! see colspan headers in example have no header
class, seems being applied tablesorter plugin.
does know what's going on?
working picture: alt text http://progamonth.com/files/working.png
not working picture: alt text http://progamonth.com/files/notworking.png
the feature disabled says here: link text
i found way have same effect, inside tablesorter js around row 298 there rule of code:
$tableheaders = $("thead th",table);
change
$tableheaders = $("thead th:not([colspan])",table);
and works me!
edit: changed code , location
Comments
Post a Comment