From bfe72e1e67690d1f39f571e5e01c40e0b2a08409 Mon Sep 17 00:00:00 2001 From: Corban-Lee Date: Wed, 31 Jul 2024 11:53:41 +0100 Subject: [PATCH] fixed #25 --- apps/static/js/table.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/static/js/table.js b/apps/static/js/table.js index 1573555..dc53579 100644 --- a/apps/static/js/table.js +++ b/apps/static/js/table.js @@ -400,6 +400,9 @@ function updateTablePagination(pageControlsId, currentPage, pageSize, totalItems let startPage, endPage; + currentPage = parseInt(currentPage); + pageSize = parseInt(pageSize); + if (pages <= maxVisiblePages) { // If total pages are less than or equal to max visible pages, show all startPage = 1;