We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d661b2b + 8aa3085 commit 003095eCopy full SHA for 003095e
modules/core/js_modules/actions/pagination.js
@@ -1,5 +1,5 @@
1
function refreshNextButton(current) {
2
- const totalPages = $(".pagination .max:first").text();
+ const totalPages = $(".pagination .max").first().text();
3
if (parseInt(current) >= parseInt(totalPages)) {
4
$(".pagination .next").prop('disabled', true);
5
} else {
@@ -16,7 +16,7 @@ function refreshPreviousButton(current) {
16
}
17
18
async function nextPage() {
19
- const currentPage = $(".pagination .current:first").text();
+ const currentPage = $(".pagination .current").first().text();
20
21
const nextPage = parseInt(currentPage) + 1;
22
0 commit comments