Another batch of important updates and fixes

This commit is contained in:
Luka Romih
2026-02-23 15:29:58 +01:00
parent d0e53fee3b
commit fd02e25719
40 changed files with 216 additions and 71 deletions
+10
View File
@@ -677,11 +677,21 @@ function initPagination(paginationRootElIds, onPageChange, currentPage = 1) {
function initControls(paginationRootElId) {
const rootEl = document.getElementById(paginationRootElId)
if (!rootEl) {
return
}
const btnFirstPage = rootEl.querySelector('.first-page')
const btnPreviousPage = rootEl.querySelector('.previous-page')
const btnNextPage = rootEl.querySelector('.next-page')
const btnLastPage = rootEl.querySelector('.last-page')
const formEl = rootEl.querySelector('form')
if (!formEl) {
return
}
const pageInputEl = formEl.querySelector('input')
const pagesCountDisplayEl = formEl.querySelector('.pages-total')