User "Dantman" posted a comment on MediaWiki.r97150.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97150#c22708
Commit summary:

Update jquery.tablesorter for r97145: emulate <thead> if there is no <thead> in 
the HTML, by walking down the table starting at the first row and moving rows 
to the <thead> as long as all of its cells are <th>s (or the row is empty). 
Also fix and simplify the sortbottom code, which was incorrectly creating 
multiple <tfoot> elements if there were multiple sortbottom rows.

Comment:

Really? Looks right to me.

* Loop over each table row
* Put any table row with just th's into the thead
* Once you hit a row that contains a td, abort since the thead is finished.

_______________________________________________
MediaWiki-CodeReview mailing list
mediawiki-coderev...@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to