assets/javascripts/patternfly.dataTables.pfSelect.js in patternfly-sass-3.17.0 vs assets/javascripts/patternfly.dataTables.pfSelect.js in patternfly-sass-3.20.0
- old
+ new
@@ -65,11 +65,11 @@
* ],
* dom: "t",
* order: [[ 1, "asc" ]],
* pfConfig: {
* ...
- * toolbarSelector: "#{{include.toolbarId}}",
+ * toolbarSelector: "#toolbar1",
* selectAllSelector: 'th:first-child input[type="checkbox"]'
* }
* select: {
* selector: 'td:first-child input[type="checkbox"]',
* style: "multi"
@@ -216,10 +216,10 @@
var selectedFilteredRows = dt.rows({"page": "current", "search": "applied", "selected": true}).flatten().length;
// De/select the select all checkbox
var selectAll = $(ctx._pfSelect.selectAllSelector, dt.table().container())[0];
if (selectAll) {
- selectAll.checked = (filteredRows === selectedFilteredRows);
+ selectAll.checked = (filteredRows !== 0 && filteredRows === selectedFilteredRows);
}
updateSelectedRowsText(dt);
}
/**