Ignore child row if it is the first table row

This commit is contained in:
Mottie 2014-03-31 17:45:08 -05:00
parent bd332da647
commit f06a546054

View File

@ -290,7 +290,8 @@
c = $(b[k].rows[i]);
cols = [];
// if this is a child row, add it to the last row's children and continue to the next row
if (c.hasClass(tc.cssChildRow)) {
// ignore child row class, if it is the first row
if (c.hasClass(tc.cssChildRow) && i !== 0) {
tc.cache[k].row[tc.cache[k].row.length - 1] = tc.cache[k].row[tc.cache[k].row.length - 1].add(c);
// add "hasChild" class name to parent row
if (!c.prev().hasClass(tc.cssChildRow)) {