https://bugzilla.wikimedia.org/show_bug.cgi?id=31060

--- Comment #5 from Brion Vibber <[email protected]> 2011-09-21 20:18:01 UTC 
---
(In reply to comment #1)
> In 1.18's tablesorter only headers can mark if a row or column should not be
> sorted. You cannot use an individual cell to mark sortability. Wether or not
> that is desirable... 
> 
> To repeat a header, actual thead's should be used from 1.18 on btw..

A table can only contain zero or one thead -- you can't add a second one later
on in the table. (You can however have multiple tbody sections.)

Note also that unless you make an explicit thead, it looks like it's the
jquery.tablesorter code that creates a thead out of the first row(s) containing
only th cells. (in emulateTHead function)

(In reply to comment #2)
> There also seems to be an issue with footers btw.
> 
> http://test2.wikipedia.org/wiki/User:TheDJ/tables#Excluding_the_last_row_from_sorting

The 'footer' row there is just a regular row in the tbody; it's not broken out
to a tfoot like the row(s) of ths at the beginning. Though it would probably
not be hard to do much the same as emulateTHead() for rows at the end, this may
not work for header rows in the middle of a table... I guess you could break
them out into multiple <tbody>s but I'm not sure what effect that would
actually have on how the table looks and behaves.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to