Fixing issue with auto checkboxes in data-table

master
Sérgio Gomes 2015-06-19 15:23:33 +01:00
parent 172358f769
commit 6fc0ed2ece
1 changed files with 8 additions and 8 deletions

View File

@ -123,7 +123,6 @@ MaterialDataTable.prototype.init = function() {
var headerCheckbox = this.createCheckbox_(null, rows); var headerCheckbox = this.createCheckbox_(null, rows);
th.appendChild(headerCheckbox); th.appendChild(headerCheckbox);
firstHeader.parentElement.insertBefore(th, firstHeader); firstHeader.parentElement.insertBefore(th, firstHeader);
}
for (var i = 0; i < rows.length; i++) { for (var i = 0; i < rows.length; i++) {
var firstCell = rows[i].querySelector('td'); var firstCell = rows[i].querySelector('td');
@ -134,6 +133,7 @@ MaterialDataTable.prototype.init = function() {
rows[i].insertBefore(td, firstCell); rows[i].insertBefore(td, firstCell);
} }
} }
}
this.element_.classList.add(this.CssClasses_.IS_UPGRADED); this.element_.classList.add(this.CssClasses_.IS_UPGRADED);
} }