aterhzaz / jquerycsvtotable

Automatically exported from code.google.com/p/jquerycsvtotable
0 stars 0 forks source link

Odd/even row classes interferes with datatables #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 + ' ">';

Original issue reported on code.google.com by j...@simula.no on 19 Mar 2014 at 10:13