CJVT updates August and September 2026
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* global $, bootstrap, handleDomainsClickForConsultancy, initPagination, inputFieldsChecker, currentPagePath,
|
||||
axios, nthParent, tooltipListWOL, tooltipTriggerList, removeAllChildNodes, i18next */
|
||||
axios, nthParent, tooltipListWOL, tooltipTriggerList, removeAllChildNodes, i18next, DateUtils */
|
||||
|
||||
/*
|
||||
author: Miha Stele, 2022
|
||||
@@ -463,10 +463,14 @@ const initialPage = +new URL(location).searchParams.get('p') || 1
|
||||
|
||||
let updatePager
|
||||
try {
|
||||
updatePager = initPagination('pagination', onPageChange, initialPage)
|
||||
updatePager = initPagination(
|
||||
'pagination',
|
||||
onConsultancyEntriesPageChange,
|
||||
initialPage
|
||||
)
|
||||
} catch (e) {}
|
||||
|
||||
async function onPageChange(newPage) {
|
||||
async function onConsultancyEntriesPageChange(newPage) {
|
||||
const receivedPageNumber = await changePage(newPage)
|
||||
updateUrlAndHistory(receivedPageNumber)
|
||||
}
|
||||
@@ -541,6 +545,7 @@ function renderResults(resultsMarkup) {
|
||||
const wrapper = document.createElement('div')
|
||||
wrapper.innerHTML = resultsMarkup
|
||||
resultsListEl.appendChild(wrapper)
|
||||
DateUtils.applyTimestamps(wrapper)
|
||||
}
|
||||
|
||||
function updateUrlAndHistory(page) {
|
||||
|
||||
Reference in New Issue
Block a user