v0.3.0 #44

Merged
corbz merged 18 commits from staging into master 2024-08-16 18:51:49 +00:00
Showing only changes of commit 41a3376033 - Show all commits

View File

@ -321,7 +321,7 @@ function createTableControls(containingSelector, pageSizeId) {
<div class="table-controls row mb-3 px-3">
<div class="col-lg-2">
<div class="table-page-info d-flex justify-content-start align-items-center mx-auto">
<span class="pageinfo-total"></span>&nbsp;Results
<span class="pageinfo-total"></span>
</div>
</div>
<div class="col-lg-8">
@ -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