From 411fe85b19df8b218ef9c3b3c594f59c2c466510 Mon Sep 17 00:00:00 2001 From: RubenPX Date: Wed, 11 May 2022 11:20:25 +0200 Subject: [PATCH] Check devices in current page --- ereuse_devicehub/static/js/main_inventory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index f48dfe99..1b911579 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -98,7 +98,7 @@ window.addEventListener("DOMContentLoaded", () => { if (TableController.getAllDevices().length == TableController.getSelectedDevices().length) { btnSelectAll.checked = true; btnSelectAll.indeterminate = false; - } else if(TableController.getAllDevices().length < TableController.getSelectedDevices().length) { + } else if(TableController.getAllSelectedDevicesInCurrentPage().length > 0) { btnSelectAll.indeterminate = true; } else { btnSelectAll.checked = false;