Check devices in current page
This commit is contained in:
parent
cc7b453c06
commit
411fe85b19
|
@ -98,7 +98,7 @@ window.addEventListener("DOMContentLoaded", () => {
|
||||||
if (TableController.getAllDevices().length == TableController.getSelectedDevices().length) {
|
if (TableController.getAllDevices().length == TableController.getSelectedDevices().length) {
|
||||||
btnSelectAll.checked = true;
|
btnSelectAll.checked = true;
|
||||||
btnSelectAll.indeterminate = false;
|
btnSelectAll.indeterminate = false;
|
||||||
} else if(TableController.getAllDevices().length < TableController.getSelectedDevices().length) {
|
} else if(TableController.getAllSelectedDevicesInCurrentPage().length > 0) {
|
||||||
btnSelectAll.indeterminate = true;
|
btnSelectAll.indeterminate = true;
|
||||||
} else {
|
} else {
|
||||||
btnSelectAll.checked = false;
|
btnSelectAll.checked = false;
|
||||||
|
|
Reference in a new issue