jquery.tablesorter: Add ability for cells with colspan in tbody
authorMatthiasDD <Matthias_K2@gmx.de>
Sat, 22 Aug 2015 21:46:27 +0000 (23:46 +0200)
committerDerk-Jan Hartman <hartman.wiki@gmail.com>
Thu, 10 Sep 2015 18:33:10 +0000 (20:33 +0200)
commit7a5f4e46d10ea2079dc3adbfe346836e3212124a
tree7462bca4af54c93a913993c09968ff7cdac17b2a
parent6382ba2d5a487def06bde3fa1749de2944535954
jquery.tablesorter: Add ability for cells with colspan in tbody

* Add manageColspans() to handle colspaned cells in table body.
  Add config.columns - number of colums with extended colspan, inclusive unsortable columns
  buildParserCache() iterate for all columns (not only the first body row, Bug: T105731)
  buildCache() also (Bug: T74534)
  Rows with not enougth cells get after first click additional empty cells.
* Clear unused header data 'sortDisabled' .
* Add $.tablesorter.getParsers() for better table diagnosis.

fix 3 litle bugs:
* Improve multi column sorting with colspan in header (add columnToHeader[..] to s[0] )
* Unsortable headers get after sorting no title tag. ($headers contain only sortable headers)
* Parser detection in tables with max. 5 rows and empty cells works now.

Bug: T105731
Bug: T74534
Change-Id: I518029616d4c10a48eeaad8e92962f4e580f9413
resources/src/jquery/jquery.tablesorter.js
tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js