Export to GitHub

jquerycsvtotable - issue #9

Odd/even row classes interferes with datatables


Posted on Mar 19, 2014 by Happy Wombat

When using DataTables (www.datatables.net) to process the table, the different classes used for <tr> tags makes the alternating row colors unreliable.

Removing oddOrEven, as below fixes this. Allowing the user to set options trClassOdd and trClassEven to the same value is another possible fix.

Line 129: - (printedLines % 2) ? oddOrEven = 'odd' : oddOrEven = 'even'; - tableHTML += '<tr class="' + options.trClass + ' ' + oddOrEven + '">'; + tableHTML += '<tr class="' + options.trClass + ' ">';

Status: New

Labels:
Type-Defect Priority-Medium