From 41a3376033111df0e294aa334f5ebdedb499f136 Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Fri, 16 Aug 2024 19:04:24 +0100 Subject: [PATCH] plural results text --- apps/static/js/table.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/static/js/table.js b/apps/static/js/table.js index 6154536..9c607ed 100644 --- a/apps/static/js/table.js +++ b/apps/static/js/table.js @@ -321,7 +321,7 @@ function createTableControls(containingSelector, pageSizeId) {
-  Results +
@@ -382,7 +382,7 @@ function updateTableContainer(containerId, page, pageSize, itemsCount, totalItem // Updates the pagination text for a given pageInfoId function updateTablePaginationInfo(pageInfoId, showing, total) { $(`${pageInfoId} .pageinfo-showing`).text(showing); - $(`${pageInfoId} .pageinfo-total`).text(total); + $(`${pageInfoId} .pageinfo-total`).text(`${total} Result${total > 1 ? "s" : ""}`); } // Updates the pagination buttons for a given pageControlsId