From 13dcf2fb1c51a0c2b4b791b3d86cbd3e2c26baaf Mon Sep 17 00:00:00 2001 From: Ivan Date: Tue, 31 Oct 2023 16:32:42 +0300 Subject: [PATCH] pages switch update for small amount of alarms --- static/templates/reports/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/templates/reports/index.html b/static/templates/reports/index.html index 9da749d..951c8bc 100644 --- a/static/templates/reports/index.html +++ b/static/templates/reports/index.html @@ -291,7 +291,7 @@ countMax = Math.ceil(data.total / 14); var currentPage = parseInt(pageNumberInput.value, 10); - if (currentPage === countMax || currentPage > countMax) { + if (currentPage > countMax) { pageNumberInput.value = countMax; requestUpdate(); }