-
+
-
-
-
-
-
-
+
+
+ of
+
-
`);
$("#" + pageSizeId).select2({
@@ -372,17 +367,8 @@ function updateTableContainer(containerId, page, pageSize, itemsCount, totalItem
nextExists,
prevExists
);
- updateTablePaginationInfo(
- `#${containerId} .table-page-info`,
- itemsCount,
- totalItemsCount
- );
-}
-// Updates the pagination text for a given pageInfoId
-function updateTablePaginationInfo(pageInfoId, showing, total) {
- $(`${pageInfoId} .pageinfo-showing`).text(showing);
- $(`${pageInfoId} .pageinfo-total`).text(`${total} Result${total > 1 ? "s" : ""}`);
+ $(`#${containerId} .pageinfo-total`).text(`${totalItemsCount} Result${totalItemsCount !== 1 ? "s" : ""}`);
}
// Updates the pagination buttons for a given pageControlsId